index.js
function checkUpdate () {
  var pkg = require("./package.json");
  require("update-notifier")({
    packageName:    pkg.name,
    packageVersion: pkg.version
  }).notify();
}
function checkUpdate () {
  var pkg = require("./package.json");
  require("update-notifier")({
    packageName:    pkg.name,
    packageVersion: pkg.version
  }).notify();
}
function checkUpdate ( ) { var pkg = require ( "./package.json" ) ; require ( "update-notifier" ) ( { packageName : pkg . name , packageVersion : pkg . version } ) . notify ( ) ; }
Check for package update
Check for package update