Skip to content

Diff two versions - range versions too - of a node module

Notifications You must be signed in to change notification settings

DanielVenturini/npm-diff

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Diff two versions - range versions too - of a node module

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 83.9%
  • Makefile 16.1%