You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Kuba Orlik 6d73550445 | 4 years ago | |
---|---|---|
src | 4 years ago | |
.gitignore | 4 years ago | |
.npmignore | 4 years ago | |
README.md | 4 years ago | |
package-lock.json | 4 years ago | |
package.json | 4 years ago | |
tsconfig.json | 4 years ago |
README.md
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();