# npm-execspawn

> Spawn locally installed npm dependencies with cross platform env and argument parsing support

Latest version **1.3.0** (published 2016-03-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install npm-execspawn
pnpm add npm-execspawn
yarn add npm-execspawn
bun add npm-execspawn
```

Provides the command `npm-execspawn`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2016-03-17 |
| First published | 2014-07-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 38 |
| Author | Mathias Buus |
| Maintainers | mafintosh, maxogden |
| Keywords | npm, exec, spawn, run, path |

## Links

- npm: https://www.npmjs.com/package/npm-execspawn
- Repository: https://github.com/mafintosh/npm-execspawn
- Issues: https://github.com/mafintosh/npm-execspawn/issues
- npm.io page: https://npm.io/package/npm-execspawn

## Dependencies (4)

- [debug](https://npm.io/package/debug.md) ^2.1.3
- [xtend](https://npm.io/package/xtend.md) ^3.0.0
- [execspawn](https://npm.io/package/execspawn.md) ^1.0.0
- [shell-quote](https://npm.io/package/shell-quote.md) ^1.5.0

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.3.0 (latest) — 2016-03-17
- 1.2.2 — 2016-01-05
- 1.2.1 — 2015-09-10
- 1.2.0 — 2015-04-07
- 1.1.0 — 2015-04-06
- 1.0.6 — 2014-08-06
- 1.0.5 — 2014-07-03
- 1.0.4 — 2014-07-03
- 1.0.3 — 2014-07-03
- 1.0.2 — 2014-07-01
- 1.0.1 — 2014-07-01
- 1.0.0 — 2014-07-01

## README

# npm-execspawn

Spawn locally installed npm dependencies with cross platform env and argument parsing support.

```
npm install npm-execspawn
```

[![build status](http://img.shields.io/travis/mafintosh/npm-execspawn.svg?style=flat)](http://travis-ci.org/mafintosh/npm-execspawn)

## Usage

First do

```
npm install browserify
```

Then

``` js
var execspawn = require('npm-execspawn')

var child = execspawn('browserify $FILENAME', {env:{FILENAME:'test.js'}})
child.stderr.pipe(process.stderr)
child.stdout.pipe(process.stdout)
```

The above should browserify test.js and both windows and unix.
The options is passed directly to `child_process.spawn`.

You can also pass in a arguments array

``` js
execspawn('echo $0 $1 and $2', ['a', 'b', 'c']).stdout.pipe(process.stdout)
```

The above will print `echo a b and c` on all platforms.

## License

MIT

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