# spawn-promise

> Spawns a process and makes it simple to pipe data in and get data out.

Latest version **0.1.8** (published 2018-03-08) · MIT license · 0 weekly downloads

## Install

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

## 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.1.8 |
| Published | 2018-03-08 |
| First published | 2015-07-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Maintainers | panosoft |

## Links

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

## Dependencies (1)

- [co](https://npm.io/package/co.md) ^4.6.0

## Recent versions

- 0.1.8 (latest) — 2018-03-08
- 0.1.7 — 2015-12-17
- 0.1.6 — 2015-11-10
- 0.1.5 — 2015-10-02
- 0.1.4 — 2015-08-17
- 0.1.3 — 2015-08-10
- 0.1.2 — 2015-08-06
- 0.1.1 — 2015-08-06
- 0.1.0 — 2015-07-29
- 0.0.1 — 2015-07-27
- 0.0.0 — 2015-07-27

## README

# spawn-promise

Spawns a process and makes it simple to pipe data in and get data out.

[![npm version](https://img.shields.io/npm/v/spawn-promise.svg)](https://www.npmjs.com/package/spawn-promise)
[![npm license](https://img.shields.io/npm/l/spawn-promise.svg)](https://www.npmjs.com/package/spawn-promise)
[![Travis](https://img.shields.io/travis/panosoft/spawn-promise.svg)](https://travis-ci.org/panosoft/spawn-promise)
[![David](https://img.shields.io/david/panosoft/spawn-promise.svg)](https://david-dm.org/panosoft/spawn-promise)
[![npm downloads](https://img.shields.io/npm/dm/spawn-promise.svg)](https://www.npmjs.com/package/spawn-promise)

## Installation

```sh
npm install spawn-promise
```

## Usage

```js
var spawn = require(spawn-promise);

spawn('grep', ['H'], 'Hello').then(function (buffer) {
  console.log(buffer.toString()); // Hello
});
```

## API

- [`spawn`](#spawn)

---

<a name="spawn"></a>
#### spawn ( command [, args] [, input] )

Spawns a child process with the given `command`, writes the `input` value to `stdin`, and returns a `Promise` that is fulfilled with the concatenated `stdout` buffer.

__Arguments__

- `command` - The command to run.
- `args` - An array of arguments to run the `command` with.
- `input` - The value to write to `stdin`.

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