ADV
Auto Dependencies Versioning for package.json
This CLI utility automatically fills in the version number of packages in dependencies field in package.json
file.
Let's say you have a ~/AwesomeProject/package.json
file and it's written like this
Then you can run
adv ~/AwesomeProject
checking package serialport...
checking package express...
checking package pug...
checking package socket.io...
checking package mongodb...
checking package moment...
checking package ip...
express(~): version ~4.15.2
moment(<): version <2.18.1
pug(): version 2.0.0-beta11
ip(*): keeping *
socket.io(^): version ^1.7.3
serialport(~): version ~4.0.7
mongodb(>=): version >=2.2.25
All done! ð
The package.json
file will then be changed to:
Installation
npm install -g adv
Usage
adv /path/to/npm/project/folder