Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

autoupdater

vdemedes72MITdeprecated1.0.0

This package is no longer maintained, use update-notifier instead

Make your module auto-update itself

auto-update, update, cli

readme

autoupdater

Make your npm modules auto-update themselves. Created for CLI programs in mind.

Installation

$ npm install autoupdater --save

Features

  • Uses battle-tested update-notifier
  • Installs new versions in the background, does not block main process
  • Update continues installation, even if main process dies

Usage

const update = require('autoupdater');

// load package.json of the package
// you want to be auto-updated
let pkg = require('path/to/package.json');


// execute autoupdater
// it checks for latest version on npm
// and if there's a newer one
// it executes `npm install` in background
update(pkg);

License

MIT © Vadym Demedes