@levihub/child_runner
v1.0.4
Published
Child file easy runner.
Downloads
3
Readme
Installation
npm i @levihub/child_runner
Declaration
const { runChild, runChildren } = require("@levihub/child_runner");
// or
import { runChild, runChildren } from "@levihub/child_runner";
Usage/Examples
Run a single file
runChild("./child.js");
// or with await on async function
await runChild("./child.js"); // to wait for process end
Run multiple files
const children = [ "./child1.js", "./child2.js" ];
runChildren(children);
// or with await on async function
await runChildren(children); // to wait for process end