Skip to content

Latest commit

 

History

History

upgradable

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

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