Socket
Socket
Sign inDemoInstall

@zeit/check-updates

Package Overview
Dependencies
75
Maintainers
18
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @zeit/check-updates

Consistent update notifications for packages


Version published
Maintainers
18
Created

Readme

Source

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

Keywords

FAQs

Last updated on 06 Mar 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc