# spawn-run

> run commands in node_modules/.bin

Latest version **0.0.6** (published 2017-11-06) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2017-11-06 |
| First published | 2017-09-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | anuoua |
| Maintainers | anuoua |

## Links

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

## Dependencies (1)

- [npm-path](https://npm.io/package/npm-path.md) ^2.0.3

## Recent versions

- 0.0.6 (latest) — 2017-11-06
- 0.0.5 — 2017-10-19
- 0.0.4 — 2017-09-09
- 0.0.3 — 2017-09-09

## README

# spawn-run [![Build Status](https://travis-ci.org/anuoua/spawn-run.svg?branch=master)](https://travis-ci.org/anuoua/spawn-run)

You can execute commands in `node_modules/.bin/` like npm run, return child_process.

## Installation

    npm install spawn-run --save-dev

## Usage

```js
var spawnRun = require('spawn-run')
var child = spawnRun(command, [options])
```

`command` like exec, and `options` like [child_process.spawn](https://nodejs.org/dist/latest-v6.x/docs/api/child_process.html#child_process_child_process_spawn_command_args_options), return `child_process`

## Example

```js
var spawnRun = require('spawn-run');
var child = spawnRun('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-run · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
