update-nodejs-notifier
1.1.1 • Public • Published update-nodejs-notifier
tell your CLI users that their Node.js is old
Usage
Set and forget.
Users will see a notification if their Node.js version needs updating.
This library will make no more than a single HTTP request every 5 days.
Simple example
const { updateNodejsNotifier } = require('update-nodejs-notifier')
updateNodejsNotifier()
Comprehensive example
const { updateNodejsNotifier } = require('update-nodejs-notifier')
updateNodejsNotifier({
notSupported: true,
daysOld: Infinity,
stableMajor: true,
stableMinor: false,
stablePatch: false,
})
See Also
Package Sidebar
Install
npm i update-nodejs-notifier
Weekly Downloads