1.0.4 • Published 6 months ago

@levihub/child_runner v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

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
1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago