autoupdater
Make your CLI npm modules auto-update themselves.
Installation
Requires the latest stable version of Node.js. v6.x or higher.
$ npm install cli-autoupdate --save
Features
- Uses battle-tested update-notifier
- Installs new versions in the background
- Emits
update
event to notify you of the start of an update - Emits
finish
event to notify you of the completion of the update (or if no update is needed)
Usage
const AutoUpdate = ; // load package.json of the package you wish to updatelet pkg = ; const update = pkg; update;update;
License
MIT © Vadym Demedes Modified Work © Todd Treece