ts-child-process
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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)));

Readme

Keywords

Package Sidebar

Install

npm i ts-child-process

Weekly Downloads

3

Version

0.0.6

License

MIT

Unpacked Size

28.3 kB

Total Files

13

Last publish

Collaborators

  • wowmuchname