CmdID

CmdID / Commands

npm-diff

Compare package versions from the npm registry and show differences. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Compare package versions from the npm registry and show differences. Similar to git diff.

Compare two specific package versions

npm diff --diff package_name@version1 --diff package_name@version2Identify

Compare current local packages with latest published version

npm diffIdentify

Compare current local package with a specific version

npm diff --diff package_name@versionIdentify

Compare a package in the current directory with the registry version

npm diff --diff package_nameIdentify

Show only filenames that differ

npm diff --diff-name-only --diff package_name@version1 --diff package_name@version2Identify

Compare specific files or directories only

npm diff path/to/file_or_directory --diff package_name@version1 --diff package_name@version2Identify

Ignore whitespace when comparing

npm diff --diff-ignore-all-space --diff package_name@version1 --diff package_name@version2Identify