runsome
Version:
run cli and get output
36 lines (26 loc) • 901 B
Markdown
[]: https://img.shields.io/npm/v/runsome.svg?style=flat
[]: https://github.com/coderaiser/runsome/actions?query=workflow%3A%22Node+CI%22 "Build Status"
[]: https://github.com/coderaiser/runsome/workflows/Node%20CI/badge.svg
[]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat
[]: https://npmjs.org/package/runsome "npm"
[]: https://tldrlegal.com/license/mit-license "MIT License"
Run some `cli` and get output. Good for testing.
```
npm i runsome
```
```js
import {runsome} from 'runsome';
runsome('node', '-v');
// returns
'v13.5.0';
// runsome already curried
const run = runsome('node');
run('-v');
// returns
'v13.5.0';
```
MIT