How to use the update-notifier.notify function in update-notifier

To help you get started, we’ve selected a few update-notifier examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github naholyr / github-todos / index.js View on Github external
function checkUpdate () {
  var pkg = require("./package.json");
  require("update-notifier")({
    packageName:    pkg.name,
    packageVersion: pkg.version
  }).notify();
}
github bahmutov / dont-break / src / check-updates.js View on Github external
(function checkForUpdates () {
  var thisPackage = require('../package.json')
  require('update-notifier')({
    packageName: thisPackage.name,
    packageVersion: thisPackage.version
  }).notify()
}())

update-notifier

Update notifications for your CLI app

BSD-2-Clause
Latest version published 7 months ago

Package Health Score

82 / 100
Full package analysis