@ewardev/script.runner

NodeJS script runner from code by timer

Stats

StarsIssuesVersionUpdatedCreatedSize
@ewardev/script.runner
1.0.23 years ago3 years agoMinified + gzip package size for @ewardev/script.runner in KB

Readme

Script.Runner

Invoke multiple commands, running in parallel / sequential, matching npm scripts

Install

npm install --save @ewardev/script.runner

Usage

usage: 
const ScriptRunner = require("script.runner");

const PATH_TO_SCRIPT = "./test/scriptForRun.js";
const TIME_FOR_RESTART_OF_SECONDS = 10; // null of 0 for start only once

const scriptRunner = new ScriptRunner(
  PATH_TO_SCRIPT,
  TIME_FOR_RESTART_OF_SECONDS,
  error => {
    console.log("PROCESS_ERROR");
  }
);

License

Copyright (c) 2018 Alex Loi Licensed under the MIT license.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.