0.0.6 • Published 6 years ago

ts-child-process v0.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

ts-child-process

Asynchronously execute child-processes on the local or a remote machine.

Local

const process: Process = await executor().then(exec => exec.execute("npm", ["--version"], {
    shell: true,
});

Remote

const process: Process = await executor({
    host: "example.com",
    username: "root",
    password: "*****",
}).then(exec => exec.execute("npm", ["--version"]);

Usage

process.on("out", (txt) => console.log("OUT", txt))
  .on("err", (txt) => console.log("ERR", txt))
  .on("close", (code, sig) => console.log("CLOSE", code, sig)));
0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago