async-spawner
v0.1.5
Published
Simple process spawning utility for node.js
Downloads
47
Readme
An async wrapper for nodejs' spawn
import spawn from "async-spawner";
await simpleSpawn("ls", "-al");
import { deferedSpawn } from "async-spawner";
const ping = await deferedSpawn("ping", ["8.8.8.8"]);
let response;
do{
response = await ping.waitForNextData();
console.log("new ping!", response);
}
ping.kill();