{"repo":"sindresorhus/execa","free":true,"listed":false,"github":"https://github.com/sindresorhus/execa","clone":"git clone https://github.com/sindresorhus/execa.git","description":"Process execution for humans","language":"JavaScript","stars":7586,"topics":["nodejs","spawn","exec","spawned-processes","javascript","child-process","shell","execute","binary","streams"],"license":"MIT","category":"cli-tools","readme_excerpt":"Process execution for humans --- Sindre's open source work is supported by the community Special thanks to: Fast remote container builds and GitHub Actions runners. --- Execa runs commands in your script, application or library. Unlike shells, it is optimized for programmatic usage. Built on top of the child process core module. Features - Simple syntax: promises and template strings, like zx . - Script interface. - No escaping nor quoting needed. No risk of shell injection. - Execute locally installed binaries without npx . - Improved Windows support: shebangs, PATHEXT , graceful termination, and more. - Detailed errors, verbose mode and custom logging, for debugging. - Pipe multiple subprocesses better than in shells: retrieve intermediate results, use multiple sources/destinations, unpipe. - Split the output into text lines, or iterate progressively over them. - Strip unnecessary newlines. - Pass any input to the subprocess: files, strings, Uint8Array s, iterables, objects and almost any other type. - Return almost any type from the subprocess, or redirect it to files. - Get interleaved output from stdout and stderr similar to what is printed on the terminal. - Retrieve the output programmatically and print it on the console at the same time. - Transform or filter the input and output with simple functions. - Pass Node.js streams or web streams to subprocesses, or convert subprocesses to a stream. - Exchange messages with the subprocess. - Ensure subprocesses exit even whe","default_branch":null,"files":null,"tree":[],"storefront":"/r/sindresorhus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sindresorhus/execa/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}