# Execa

> Process execution for humans: run subprocesses from Node.js without shell escaping

Source: https://talira.ai/catalog/execa-nxazjf16
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / subprocesses](https://talira.ai/categories/libraries/subprocesses), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Sindre Sorhus](https://talira.ai/orgs/sindresorhus.md)

Execa runs subprocesses from Node.js with promises and template strings and no escaping or quoting, so there's no risk of shell injection. It runs locally installed binaries without npx, improves Windows support (shebangs, PATHEXT, graceful termination), gives detailed errors and a verbose mode, and pipes several subprocesses together better than a shell does, keeping each step's result. Output can be split into lines or iterated as it arrives, interleaved from stdout and stderr, transformed with simple functions, or passed as Node.js or web streams, and subprocesses are made to exit even when they ignore termination signals. It's by Sindre Sorhus.

## Links

- GitHub: https://github.com/sindresorhus/execa
- Docs: https://github.com/sindresorhus/execa/tree/main/docs

## Problems it solves

- run a shell command from my Node script without worrying about quoting and injection
- pipe the output of one command into another from JavaScript and keep both results
- my child_process spawn code breaks on Windows

## Features

- promise and template string syntax with no escaping or shell injection
- runs locally installed binaries without npx
- Windows support for shebangs, PATHEXT and graceful termination
- piping between subprocesses with intermediate results
- line splitting, interleaved stdout and stderr, and transforms
- Node.js and web streams in and out
- forceful termination when a subprocess ignores signals

## Trust

Overall: 0.68 out of 1.
Signals: maintenance 1.00, adoption 0.78, momentum 0.54, community 0.73, backing 0.30, extensibility 0.00.

- last commit 12 days ago
- 72 commits in the last 90 days
- latest release v10.2.1 38 days ago
- 7.7k GitHub stars
- 65 contributors
- accepts sponsorship (Github, Open Collective, Buy Me A Coffee)
- backed by Sindre Sorhus

## Alternatives

- [cross-spawn](https://talira.ai/catalog/cross-spawn-kd68kam2.md): Cross-platform child_process spawn and spawnSync for Node.js

## Sources

[^1]: https://github.com/sindresorhus/execa/blob/main/readme.md (checked 29 Nov 2026)
[^2]: https://github.com/sindresorhus/execa/blob/main/license (checked 29 Nov 2026)
