New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cli-autoupdate

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-autoupdate

Make your module auto-update itself

  • 2.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
660
increased by10.74%
Maintainers
1
Weekly downloads
 
Created
Source

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 = require('cli-autoupdate');

// load package.json of the package you wish to update
let pkg = require('path/to/package.json');

const update = new AutoUpdate(pkg);

update.on('update', () => console.log('started update'));
update.on('finish', () => console.log('finished updating'));

License

MIT © Vadym Demedes Modified Work © Todd Treece

Keywords

FAQs

Package last updated on 07 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc