npm-collect

1.0.5 • Public • Published

Useful when

  • updating/developing several npm modules in parallel (especially using npm link)
  • creating an package.json file after installing modules

Usage

npm install -g npm-collect

then:

$ npm-collect --help
Usage: npm-collect <options>
Options:
  --devDependencies    process dev-dependencies instead of dependencies
  --new                include modules which are not found in package.json, but are installed
  --save               write changes to package.json
  -v <number>          verboselevel (0=silent,1=normal,2=debug)

Examples

Just see differences without writing to package.json

$ npm-collect
querystring@0.1.9 -> 0.2.0
modulefoo@0.2.9 -> 0.3.0

update your package.json

$ npm-collect --save
querystring@0.1.9 -> 0.2.0
modulefoo@0.2.9 -> 0.3.0

update package.json with newly discovered modules in node_modules

$ npm-collect --new --save
querystring@(unsaved) -> 0.2.0
ohmypgrah@(unsaved)   -> 0.2.0

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.5
    96
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.5
    96
  • 1.0.4
    2
  • 1.0.3
    2
  • 1.0.2
    2
  • 1.0.1
    2

Package Sidebar

Install

npm i npm-collect

Weekly Downloads

25

Version

1.0.5

License

BSD-2-Clause

Last publish

Collaborators

  • coderofsalvation