Hacker News new | ask | show | jobs
by BinaryBullet 3747 days ago
In the root project folder (containing package.json and ./node_modules), you can run the following:

    comm -12 <(ls ./node_modules) <(curl https://gist.githubusercontent.com/azer/db27417ee84b5f34a6ea/raw/50ab7ef26dbde2d4ea52318a3590af78b2a21162/gistfile1.txt) 

It will output any of the modules that @azer unpublished yesterday (that are being used by your project).
1 comments

NOTE: this only works for NPM 3's flat node_module structure