open-index/open-npm huggingface dataset:
npm package: @malept/cross-spawn-promise
Description: Promisified version of cross-spawn
Author: Mark Lee
Latest version: 2.0.0

# `@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.
npm package: @malept/eslint-config
Description: Shared ESLint configuration
Author: Mark Lee
Latest version: 2.1.0

# `@malept/eslint-config`

> Common ESLint configuration for JavaScript/TypeScript modules maintained by
> [`@malept`](https://npmjs.com/~malept).

## Usage

To install this ESLint configuration and its (base) peer dependencies:

```shell
# npm
npm install --save-dev @malept/eslint-config eslint eslint-plugin-{ava,import,node,prettier,promise} prettier
# yarn 1
yarn add --dev @malept/eslint-config eslint eslint-plugin-{ava,import,node,prettier,promise} prettier
```

Peer dependencies (see `package.json` for version details):

- `eslint`
- `eslint-plugin-ava`
- `eslint-plugin-import`
- `eslint-plugin-node`
- `eslint-plugin-prettier`
- `eslint-plugin-promise`
- `prettier` (due to `eslint-plugin-prettier`)

### JavaScript

Usage example:

```javascript
{
  extends: [
    // ...
    '@malept'
  ]
}
```

### TypeScript

Additional peer dependencies (see `package.json` for version details):

- `@typescript-eslint/eslint-plugin`
- `eslint-plugin-tsdoc`

Usage example:

```javascript
{
  extends: [
    // ...
    '@malept/eslint-config/typescript'
  ]
}
```

## License

[Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)