Go to file
2018-05-31 19:33:22 +02:00
.editorconfig init 2017-12-03 12:15:02 +01:00
.eslintrc don't return 255 code any more, misc tweaks 2018-05-31 19:33:22 +02:00
.gitignore init 2017-12-03 12:15:02 +01:00
.travis.yml update .travis.yml 2018-01-23 22:33:30 +01:00
LICENSE tweaks 2017-12-03 12:21:06 +01:00
Makefile fix makefile phony 2018-05-07 13:00:31 +02:00
package.json don't return 255 code any more, misc tweaks 2018-05-31 19:33:22 +02:00
README.md don't return 255 code any more, misc tweaks 2018-05-31 19:33:22 +02:00
updates.js don't return 255 code any more, misc tweaks 2018-05-31 19:33:22 +02:00

updates

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.

Install

$ npm i -g updates

Examples

Check for 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

Update package.json

$ 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!

JSON Output

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