Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

check-module-update

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-module-update

Makes sure users stay up to date with your module!

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source



Keep users on track

Programmatically inform users of new updates of your module. This package query's the npm registry on a update check with a defined set of options.


Getting Started

1. Start by installing the package:
npm install check-module-update
2. Do awesome stuff!
updateCheck.check({
  timeout: 1000,      // Normal timeout in milliseconds of a npm registry request
  output: true,       // Display output when a new version is availible
  count: 0,           // Number of retries of a npm registry request
  factor: 0,          // This does... well.. uhm.. factoring
  minTimeout: 150,    // Min timeout in milliseconds for a npm registry request
  maxTimeout: 500,    // Max timeout in milliseconds for a npm registry request
}, (err, newUpdate) => {
  if (err)
    throw new Error(err)

  if (newUpdate)
    console.log('update notification has been displayed to the user!')

  if (!newUpdate)
    console.log('No new update available...')
})

Contact

You can contact me at specamps@gmail.com

FAQs

Package last updated on 25 Aug 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc