@marcopeg/spawn

1.12.0 • Public • Published

@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

Package Sidebar

Install

npm i @marcopeg/spawn

Weekly Downloads

0

Version

1.12.0

License

MIT

Unpacked Size

7.77 kB

Total Files

7

Last publish

Collaborators

  • marcopeg