@marcopeg/spawn
v1.12.0
Published
An async wrapper around child_process.spawn with a rich API to control the spawned process
Downloads
5
Maintainers
Readme
@marcopeg/spawn
An async wrapper around child_process.spawn
with a rich API to control the spawned process.
const spawn = require("@marcopeg/spawn");
const p1 = spawn("echo 123");
const r1 = await p1;
console.log(r1.stdout[0]);
// -> 123
For more examples take a look at the unit tests