adv
v0.1.5
Published
auto dependencies versioning for package.json
Downloads
862
Readme
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
{
"name": "my-project",
"version": "1.0.0",
"main": "index.js",
"dependencies": {
"serialport": "~",
"express": "~",
"pug": "",
"socket.io": "^",
"mongodb": ">=",
"moment": "<",
"ip": "*"
}
}
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:
{
"name": "my-project",
"version": "1.0.0",
"main": "index.js",
"dependencies": {
"serialport": "~4.0.7",
"express": "~4.15.2",
"pug": "2.0.0-beta11",
"socket.io": "^1.7.3",
"mongodb": ">=2.2.25",
"moment": "<2.18.1",
"ip": "*"
}
}
Installation
npm install -g adv
Usage
adv /path/to/npm/project/folder