npm-auto-update

1.1.3 • Public • Published

npm-auto-update

💫 JavaScript interface to programmically update your application from npm

Features

Checks if the version on npm is newer then you'r local version (from package.json). if true its possible todo a global update

Constructor

Pass a log object e.g. console

const npmAutoUpdate = new (require('npm-auto-update'))(console);
npmAutoUpdate.checkForUpdate((error, result) => {
            if(result) {
                this.npmAutoUpdate.updatePackage((error, result) => {
                });
            }
});

Readme

Keywords

Package Sidebar

Install

npm i npm-auto-update

Weekly Downloads

5

Version

1.1.3

License

ISC

Last publish

Collaborators

  • firsttris