https://github.com/coderofsalvation/npm-collect
automatically update package.json according to installed/linked modules in node_modules
https://github.com/coderofsalvation/npm-collect
Last synced: 11 months ago
JSON representation
automatically update package.json according to installed/linked modules in node_modules
- Host: GitHub
- URL: https://github.com/coderofsalvation/npm-collect
- Owner: coderofsalvation
- Created: 2015-11-05T08:48:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-05-28T19:20:19.000Z (about 6 years ago)
- Last Synced: 2025-04-12T20:09:17.346Z (about 1 year ago)
- Language: CoffeeScript
- Homepage:
- Size: 5.86 KB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# 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:
--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 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