updates/README.md

36 lines
1.0 KiB
Markdown
Raw Normal View History

2017-12-03 11:15:02 +00:00
# updates
[![](https://img.shields.io/npm/v/updates.svg?style=flat)](https://www.npmjs.org/package/updates) [![](https://img.shields.io/npm/dm/updates.svg)](https://www.npmjs.org/package/updates) [![](https://api.travis-ci.org/silverwind/updates.svg?style=flat)](https://travis-ci.org/silverwind/updates)
2017-12-03 11:36:27 +00:00
> Fast npm dependency updating tool
2017-12-03 11:15:02 +00:00
2017-12-03 13:27:35 +00:00
<p align="center">
2017-12-03 13:33:46 +00:00
<img src="https://i.imgur.com/jBjNoKO.png"/>
2017-12-03 13:27:35 +00:00
</p>
2017-12-03 13:14:30 +00:00
2017-12-03 14:16:59 +00:00
`updates` is a lightweight tool that checks for npm dependency updates and optionally updates `package.json`. It talks directly to the npm registry and is usually able to find all updates in under a second.
2017-12-03 11:15:02 +00:00
2017-12-03 11:38:46 +00:00
## Install
2017-12-03 11:30:39 +00:00
2017-12-03 12:18:53 +00:00
```console
2017-12-03 11:30:39 +00:00
$ npm install -g updates
```
2017-12-03 14:16:59 +00:00
## Examples
2017-12-03 12:18:53 +00:00
```console
2017-12-03 11:15:56 +00:00
$ updates
2017-12-03 15:27:35 +00:00
PACKAGE OLD NEW
got ^7.0.0 ^8.0.1
semver ^5.0.4 ^5.4.1
eslint ^4.11.1 ^4.12.1
2017-12-03 14:16:59 +00:00
```
```console
2017-12-03 11:15:56 +00:00
$ updates -u
package.json updated!
2017-12-03 14:16:59 +00:00
```
```console
2017-12-03 11:27:51 +00:00
$ time updates
All packages are up to date.
updates 0.28s user 0.06s system 82% cpu 0.417 total
2017-12-03 11:15:02 +00:00
```
© [silverwind](https://github.com/silverwind), distributed under BSD licence