0.1.1 • Published 6 years ago
easycp v0.1.1
easycp
Easy child process
Please ★ this repo if you found it useful ★ ★ ★
Features
- Promise based
- Works with i/o
Installation
npm install --save easycp
Dependencies
Usage
import easycp, { readcp, silentcp } from 'easycp';
// streams to stdout and process returned
easycp('echo hello world').then(process => console.log(process)); // [object Object]
// alternative syntax
easycp('echo', ['hello', 'world']).then(process => console.log(process)); // [object Object]
// streams to stdout (stderr silenced) and process returned
easycp('echo', ['hello', 'world'], { stderr: false }).then(process => console.log(process)); // [object Object]
// stream silenced and process returned
silentcp('echo hello world').then(process => console.log(process)); // [object Object]
// stream silenced and returned as result
readcp('echo hello world').then(result => console.log(result)); // hello world
Support
Submit an issue
Contributing
Review the guidelines for contributing
License
Jam Risser © 2018
Changelog
Review the changelog
Credits
- Jam Risser - Author
Support on Liberapay
A ridiculous amount of coffee ☕ ☕ ☕ was consumed in the process of building this project.
Add some fuel if you'd like to keep me going!