# @malept/cross-spawn-promise

> Promisified version of cross-spawn

Latest version **2.0.0** (published 2021-07-02) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @malept/cross-spawn-promise
pnpm add @malept/cross-spawn-promise
yarn add @malept/cross-spawn-promise
bun add @malept/cross-spawn-promise
```

## 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 | 2021-07-02 |
| First published | 2020-02-13 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 12.13.0 |
| Dependencies | 1 |
| Unpacked size | 24.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Mark Lee |
| Maintainers | malept |

## Links

- npm: https://www.npmjs.com/package/@malept/cross-spawn-promise
- Repository: https://github.com/malept/cross-spawn-promise
- Homepage: https://github.com/malept/cross-spawn-promise#readme
- Issues: https://github.com/malept/cross-spawn-promise/issues
- Funding: https://github.com/sponsors/malept
- npm.io page: https://npm.io/package/@malept/cross-spawn-promise

## Dependencies (1)

- [cross-spawn](https://npm.io/package/cross-spawn.md) ^7.0.1

## Recent versions

- 2.0.0 (latest) — 2021-07-02
- 1.1.1 — 2020-12-05
- 1.1.0 — 2020-03-29
- 1.0.0 — 2020-02-13

## README

# `@malept/cross-spawn-promise`

> A promisified version of [`cross-spawn`](https://npm.im/cross-spawn) with slightly different behavior & extra options.

[![CI](https://github.com/malept/cross-spawn-promise/workflows/CI/badge.svg)](https://github.com/malept/cross-spawn-promise/actions?query=workflow%3ACI)
[![NPM package](https://img.shields.io/npm/v/@malept/cross-spawn-promise.svg)](https://www.npmjs.com/package/@malept/cross-spawn-promise)
[![codecov](https://codecov.io/gh/malept/cross-spawn-promise/branch/main/graph/badge.svg)](https://codecov.io/gh/malept/cross-spawn-promise)

## Different Behavior

If the spawned process exits with a non-zero code, an `ExitCodeError` is thrown with the original
command, code, `stdout`, and `stderr` as properties.

If the spawned process is terminated by a signal on non-Windows platforms, an `ExitSignalError` is
thrown with the original command, signal name, `stdout`, and `stderr` as properties.

## Extra Options

- `logger`: a `Function` such as `console.log` or `debug(name)` to log some information
  about the spawned process.
- `updateErrorCallback`: a callback which mutates the error before it is re-thrown. Most commonly,
  this is used to augment the error message of `ENOENT` error to provide a more human-friendly
  message as to how to install the missing executable.

## Legal

This module is licensed under the Apache 2.0 license.

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