async-spawner
v0.1.5
Published
Simple process spawning utility for node.js
Downloads
70
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();