# spawn-command

> Spawn commands like `child_process.exec` does but return a `ChildProcess`

Latest version **1.0.0** (published 2024-09-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install spawn-command
pnpm add spawn-command
yarn add spawn-command
bun add spawn-command
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

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

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2024-09-15 |
| First published | 2012-06-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 47 |
| Author | Maciej Małecki |
| Maintainers | mmalecki |

## Links

- npm: https://www.npmjs.com/package/spawn-command
- Repository: https://github.com/mmalecki/spawn-command
- Homepage: https://github.com/mmalecki/spawn-command#readme
- Issues: https://github.com/mmalecki/spawn-command/issues
- npm.io page: https://npm.io/package/spawn-command

## Recent versions

- 1.0.0 (latest) — 2024-09-15
- 0.0.3 — 2024-07-11
- 0.0.2-1 — 2014-10-09
- 0.0.2 — 2012-11-06
- 0.0.1 — 2012-06-20
- 0.0.0 — 2012-06-20

## README

# spawn-command
Spawn commands like `child_process.exec` does but return a `ChildProcess`.

## Installation

    npm install spawn-command

## Usage
```js
var spawnCommand = require('spawn-command'),
    child = spawnCommand('echo "Hello spawn" | base64');

child.stdout.on('data', function (data) {
  console.log('data', data);
});

child.on('exit', function (exitCode) {
  console.log('exit', exitCode);
});
```

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