# ts-child-process

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

Latest version **0.0.6** (published 2018-09-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install ts-child-process
pnpm add ts-child-process
yarn add ts-child-process
bun add ts-child-process
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2018-09-22 |
| First published | 2018-08-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 27.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | mark.albert@pbforge.com |
| Maintainers | wowmuchname |
| Keywords | ssh, spawn |

## Links

- npm: https://www.npmjs.com/package/ts-child-process
- Repository: https://github.com/WowMuchName/ts-child-process
- Homepage: https://github.com/WowMuchName/ts-child-process#readme
- Issues: https://github.com/WowMuchName/ts-child-process/issues
- npm.io page: https://npm.io/package/ts-child-process

## Dependencies (2)

- [ssh2](https://npm.io/package/ssh2.md) ^0.6.1
- [@types/ssh2](https://npm.io/package/@types/ssh2.md) ^0.5.35

## Recent versions

- 0.0.6 (latest) — 2018-09-22
- 0.0.5 — 2018-09-21
- 0.0.4 — 2018-08-16
- 0.0.3 — 2018-08-16
- 0.0.2 — 2018-08-16
- 0.0.1 — 2018-08-16

## README

# ts-child-process

Asynchronously execute child-processes on the local or a remote machine.

## Local
```ts
const process: Process = await executor().then(exec => exec.execute("npm", ["--version"], {
    shell: true,
});
```

## Remote
```ts
const process: Process = await executor({
    host: "example.com",
    username: "root",
    password: "*****",
}).then(exec => exec.execute("npm", ["--version"]);
```

## Usage
```ts
process.on("out", (txt) => console.log("OUT", txt))
  .on("err", (txt) => console.log("ERR", txt))
  .on("close", (code, sig) => console.log("CLOSE", code, sig)));
```

---
_Source: https://npm.io/package/ts-child-process · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
