@zeit/check-updates

Consistent update notifications for packages

Please use `update-check` instead.
Last updated 8 years ago by leo .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @zeit/check-updates 
SYNC missed versions from official npm registry.

check-updates

This package makes it very easy to implement update notifications into ZEIT packages:

screen shot 2018-01-12 at 15 01 33

Usage

Firstly, install the package:

npm install @zeit/check-updates

Next, initialize it:

const pkg = require('./package')
const updateNotifier = require('@zeit/check-updates')

updateNotifier(pkg, 'Project Name')

You can even pass a millisecond interval for the cache (a day by default):

updateNotifier(pkg, 'Project Name', 80000)

Contributing

  1. Fork this repository to your own GitHub account and then clone it to your local device
  2. Link the package to the global module directory: npm link
  3. Within the module you want to test your local development instance of the package, just link it: npm link @zeit/check-updates. Instead of the default one from npm, node will now use your clone.

Author

Leo Lamprecht (@notquiteleo) - ZEIT

Current Tags

  • 1.1.1                                ...           latest (8 years ago)

8 Versions

  • 1.1.1 [deprecated]           ...           8 years ago
  • 1.1.0 [deprecated]           ...           8 years ago
  • 1.0.5 [deprecated]           ...           8 years ago
  • 1.0.4 [deprecated]           ...           8 years ago
  • 1.0.3 [deprecated]           ...           8 years ago
  • 1.0.2 [deprecated]           ...           8 years ago
  • 1.0.1 [deprecated]           ...           8 years ago
  • 1.0.0 [deprecated]           ...           8 years ago
Downloads
Today 0
This Week 1
This Month 2
Last Day 0
Last Week 1
Last Month 0
Dependencies (3)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |