Skip to content

imochen/update-notice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');
// });

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages