This package has been deprecated

Author message:

Please use `update-check` instead.

@zeit/check-updates

1.1.1 • Public • Published

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

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @zeit/check-updates

    Weekly Downloads

    605

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    18 kB

    Total Files

    6

    Last publish

    Collaborators

    • gdborton
    • matheuss
    • matt.straka
    • nick.tracey
    • zeit-bot
    • vercel-release-bot