I just came across this package and found interesting and hence wanted to add it to our package(was unclear how to) and created a file named updateNotifier.js and pasted the sample code
const updateNotifier = require('update-notifier');
const pkg = require('./package.json');
// Checks for available update and returns an instance
const notifier = updateNotifier({pkg, updateCheckInterval: 0});
// Notify using the built-in convenience method
notifier.notify();
// `notifier.update` contains some useful info about the update
console.log(notifier.update);
while i try to run with node updateNotifier.js all i get is undefined
Hi,
I just came across this package and found interesting and hence wanted to add it to our package(was unclear how to) and created a file named
updateNotifier.js
and pasted the sample codewhile i try to run with
node updateNotifier.js
all i get isundefined
Any help would be great.