upgradable

0.0.11 • Public • Published

Upgradable

"Upgradable" runs in a background child process and checks for updates in your CLI package. If there's a new version available - at end of interaction, when user sends interrupt signal (ctrl+c), it will prompt your users to upgrade your node CLI tool.

Use

const upgradable = require('upgradable');
const { name, version } = require('./package.json');
 
upgradable({name, version});

Shorthand

require('upgradable')(require('./package.json'));

image

options

message (Optional)

upgradable({name, version, message: 'This is my own inspirational message'});
image

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.117latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.117
0.0.100
0.0.90
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i upgradable

Weekly Downloads

7

Version

0.0.11

License

MIT

Unpacked Size

7.69 kB

Total Files

9

Last publish

Collaborators

  • omrilotan