# @esm2cjs/execa

> Process execution for humans. This is a fork of sindresorhus/execa, but with CommonJS support.

Latest version **6.1.1-cjs.1** (published 2022-08-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @esm2cjs/execa
pnpm add @esm2cjs/execa
yarn add @esm2cjs/execa
bun add @esm2cjs/execa
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 6.1.1-cjs.1 |
| Published | 2022-08-24 |
| First published | 2022-08-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^12.20.0 \|\| ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 9 |
| Unpacked size | 104.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dominic Griesel |
| Maintainers | alcalzone |
| Keywords | exec, child, process, execute, fork, execfile, spawn, file, shell, bin, binary, binaries, npm, path, local |

## Links

- npm: https://www.npmjs.com/package/@esm2cjs/execa
- Repository: https://github.com/esm2cjs/execa
- Homepage: https://github.com/esm2cjs/execa#readme
- Issues: https://github.com/esm2cjs/execa/issues
- Funding: https://github.com/sponsors/AlCalzone
- npm.io page: https://npm.io/package/@esm2cjs/execa

## Dependencies (9)

- [get-stream](https://npm.io/package/get-stream.md) ^6.0.1
- [cross-spawn](https://npm.io/package/cross-spawn.md) ^7.0.3
- [signal-exit](https://npm.io/package/signal-exit.md) ^3.0.7
- [merge-stream](https://npm.io/package/merge-stream.md) ^2.0.0
- [@esm2cjs/onetime](https://npm.io/package/@esm2cjs/onetime.md) ^6.0.1-cjs.0
- [@esm2cjs/is-stream](https://npm.io/package/@esm2cjs/is-stream.md) ^3.0.0
- [@esm2cjs/npm-run-path](https://npm.io/package/@esm2cjs/npm-run-path.md) ^5.1.1-cjs.0
- [@esm2cjs/human-signals](https://npm.io/package/@esm2cjs/human-signals.md) ^3.0.1
- [@esm2cjs/strip-final-newline](https://npm.io/package/@esm2cjs/strip-final-newline.md) ^3.0.1-cjs.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

- 6.1.1-cjs.1 (latest) — 2022-08-24
- 6.1.1-cjs.0 — 2022-08-18
- 6.1.0 — 2022-08-18

## README

# @esm2cjs/execa

This is a fork of https://github.com/sindresorhus/execa, but automatically patched to support ESM **and** CommonJS, unlike the original repository.

## Install

You can use an npm alias to install this package under the original name:

```
npm i execa@npm:@esm2cjs/execa
```

```jsonc
// package.json
"dependencies": {
    "execa": "npm:@esm2cjs/execa"
}
```

but `npm` might dedupe this incorrectly when other packages depend on the replaced package. If you can, prefer using the scoped package directly:

```
npm i @esm2cjs/execa
```

```jsonc
// package.json
"dependencies": {
    "@esm2cjs/execa": "^ver.si.on"
}
```

> **Note:**
> We strive to use the same versions as the upstream package, but unfortunately there is a bit of a learning curve with these things.
> As a result, we had to re-publish `6.1.0` as `6.1.1-cjs.1`.

## Usage

```js
// Using ESM import syntax
import { execa } from "execa";

// Using CommonJS require()
const { execa } = require("execa");
```

For more details, please see the original [repository](https://github.com/sindresorhus/execa).

## Sponsoring

To support my efforts in maintaining the ESM/CommonJS hybrid, please sponsor [here](https://github.com/sponsors/AlCalzone).

To support the original author of the module, please sponsor [here](https://github.com/sindresorhus/execa).

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