# spawn-sync

> Exports child_process.spawnSync

Latest version **2.0.0** (published 2018-05-14) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2.0.0 |
| Published | 2018-05-14 |
| First published | 2014-01-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 35 |
| Author | ForbesLindesay |
| Maintainers | bengl, forbeslindesay, leobalter, satazor |

## Links

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

## Recent versions

- 2.0.0 (latest) — 2018-05-14
- 1.0.15 — 2016-01-03
- 1.0.14 — 2015-10-30
- 1.0.13 — 2015-07-16
- 1.0.12 — 2015-07-16
- 1.0.11 — 2015-05-14
- 1.0.10 — 2015-05-13
- 1.0.9 — 2015-05-13
- 1.0.8 — 2015-05-13
- 1.0.7 — 2015-05-13
- 1.0.6 — 2015-04-10
- 1.0.5 — 2015-02-16
- 1.0.4 — 2015-02-11
- 1.0.3 — 2015-02-05
- 1.0.2 — 2015-01-15
- … 4 more at https://npm.io/package/spawn-sync/versions

## README

# spawn-sync

This used to be a polyfill for `require('child_process').spawnSync` but now all actively maintained node versions already support `spawnSync`, so this is just a stub that re-exports `spawnSync`.

## Usage

You should remove this library from your dependencies and just do:
```js
var spawnSync = require('child_process').spawnSync;

var result = spawnSync('node',
                       ['filename.js'],
                       {input: 'write this to stdin'});

if (result.status !== 0) {
  process.stderr.write(result.stderr);
  process.exit(result.status);
} else {
  process.stdout.write(result.stdout);
  process.stderr.write(result.stderr);
}
```

## License

  MIT

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