Go to file
2018-02-22 06:28:14 +01:00
.editorconfig init 2017-12-03 12:15:02 +01:00
.eslintrc add -p option to include prelease version 2018-02-21 20:44:13 +01: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 test 2017-12-03 12:21:36 +01:00
package.json 2.3.0 2018-02-21 20:45:39 +01:00
README.md update dependencies, readme tweak 2018-01-16 21:59:59 +01:00
updates.js Fix error handling when package.json does not exist 2018-02-22 06:28:14 +01:00

updates

Fast npm dependency updating tool

updates checks for npm dependency updates and optionally updates package.json. It is typically able to complete in less than a second. It can also output JSON for easy integration.

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

The resulting JSON object always has the key results which lists available updates. Additionally, message and error properties can 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