update-notice

0.1.3 • Public • Published

update-notice

Update notifications for CLI.

screenshot

Install

npm install update-notice --save

Usage

const updateNotice = require('update-notice');
const pkg = require('./package.json');

const notice = updateNotice({
  pkg,
  options: {
    registry: 'https://registry.npmjs.org', //set your own registry
    isSudo: true, // default false
    isGlobal: true, // default false
  },
});

notice.notify();

// notice.notify((chalk) => {
//   return 'Changelog ' + chalk.underline('/path/to/CHANGELOG.md');
// });

Package Sidebar

Install

npm i update-notice

Weekly Downloads

4

Version

0.1.3

License

MIT

Unpacked Size

20.9 kB

Total Files

5

Last publish

Collaborators

  • imochen