Fast npm dependency updating tool
updates
is a CLI tool which checks for npm dependency updates of the current project and optionally updates package.json
. It is typically able to complete in less than a second.
$ npm i -g updates
$ updates
NAME OLD NEW
chalk 1.3.0 2.3.0
got ^7.0.1 ^8.0.1
minimist ^1.0.0 ^1.2.0
$ updates -u
NAME OLD NEW
chalk 1.3.0 2.3.0
got ^7.0.1 ^8.0.1
minimist ^1.0.0 ^1.2.0
package.json updated!
updates
can output JSON. The result is always an object with the key results
and depending on operation, message
and error
properties can also be present.
$ updates -j
{
"results": {
"chalk": {
"old": "1.3.0",
"new": "2.3.0"
},
"got": {
"old": "^7.0.1",
"new": "^8.0.1"
},
"minimist": {
"old": "^1.0.0",
"new": "^1.2.0"
}
}
}
© silverwind, distributed under BSD licence