1.3.5 • Published 9 months ago

tiny-npm-updater v1.3.5

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

tiny-npm-updater: Easy tiny npm-packages updater.

npm-version npm-week-downloads

Easy tiny npm-packages updater. Launches the CLI command 'npm update' in background.

Installing

npm install npm-packages updater

Usage example

app.js

var updater = require('tiny-npm-updater');

updater.options.updateCheckInterval_seconds = 30;
updater.on('error', function (err, pkgName) { console.error(err); });
updater.on('updated', function (pkgName, isUpdated, info) {

    if (isUpdated) {
        //restartAPP();
    }
    console.log('pkg:', pkgName);
    console.log(info);
});

console.log(updater.outdated());

var updateLater = true;
updater.update(updateLater); // Launches the CLI command 'npm update' after 30s

Config-sets file

config-sets.json

{
  "production": {
    "isDebug": false,
    "tiny_npm_updater": {
      "current_working_directory": "",
      "updateCheckInterval_seconds": 86400,
      "logDir": "./log/tiny-npm-updater",
      "autoupdate": true
    },
    "log_report": {
      "logDir": "./log/log-report",
      "clear_on_startup": true,
      "save_only_uncaughtException": true,
      "enabled": true
    }
  },
  "development": {
    "isDebug": true
  }
}

License

MIT

Copyright (c) 2022 Manuel Lõhmus manuel@hauss.ee

1.3.5

9 months ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.2.2

1 year ago

1.3.0

1 year ago

1.2.0

2 years ago

1.1.8

2 years ago

1.2.1

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago