Skip to content

Latest commit

 

History

History
54 lines (33 loc) · 927 Bytes

README.md

File metadata and controls

54 lines (33 loc) · 927 Bytes

npm-diff(2)

Diff two versions of a node module.

screenshot

Installation

$ make install

Usage

$ npm-diff
Usage: npm-diff <module> <versionA> <versionB>

npm-diff(1) outputs regular diff(1) content so it plays nice with other tooling.

Also works for range versions, where the last version accepted by the range will be used:

$ npm-diff intersect 0 1.0.1 | less

screenshot

Tips

Page big diffs:

$ npm-diff intersect 0.0.0 0.1.0 | less

Pipe to colordiff for colored git like diffs:

$ npm-diff intersect 0.0.0 0.1.0 | colordiff | less -R

If you don't have colordiff, and want to use it (on the Linux, use sudo; in the Mac, don't use):

$ make colordiff

License

MIT