npm diff
all
Compare package versions from the `npm` registry and show differences. Similar to `git diff`.
More info →Examples (7)
Compare two specific package versions
npm diff --diff package_name@version1 --diff package_name@version2Compare current local packages with latest published version
Compare current local package with a specific version
npm diff --diff package_name@versionCompare a package in the current directory with the registry version
npm diff --diff package_nameShow only filenames that differ
npm diff --diff-name-only --diff package_name@version1 --diff package_name@version2Compare specific files or directories only
npm diff path/to/file_or_directory --diff package_name@version1 --diff package_name@version2Ignore whitespace when comparing
npm diff --diff-ignore-all-space --diff package_name@version1 --diff package_name@version2made by @shridhargupta | data from tldr-pages