Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielberndt/exec
Wrap child_process.exec with Promise and add pretty output
https://github.com/danielberndt/exec
Last synced: 18 days ago
JSON representation
Wrap child_process.exec with Promise and add pretty output
- Host: GitHub
- URL: https://github.com/danielberndt/exec
- Owner: danielberndt
- Created: 2018-01-02T13:44:48.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-09T14:57:36.000Z (over 3 years ago)
- Last Synced: 2024-12-13T08:19:16.070Z (23 days ago)
- Language: JavaScript
- Size: 48.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# exec
promisifies `require("child_process").exec` and pretty-prints the output of stdout and stderr as data comes in.
## install
```
npm i @danielberndt/exec;
```## usage examples:
```javascript
const result = await exec("ls -l");
``````javascript
exec("ls -l doesntexist").catch(errCode => {
// do something with errCode
});
```