Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@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

Install

npm i @marcopeg/spawn

DownloadsWeekly Downloads

8

Version

1.12.0

License

MIT

Unpacked Size

7.77 kB

Total Files

7

Last publish

Collaborators

  • avatar