Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/appgeist/exec
Utility function to execute a shell command and return a Promise
https://github.com/appgeist/exec
exec nodejs promise server-side shell utilities
Last synced: 9 days ago
JSON representation
Utility function to execute a shell command and return a Promise
- Host: GitHub
- URL: https://github.com/appgeist/exec
- Owner: appgeist
- License: isc
- Created: 2019-07-09T06:59:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T09:18:24.000Z (almost 3 years ago)
- Last Synced: 2024-10-04T15:46:50.364Z (about 1 month ago)
- Topics: exec, nodejs, promise, server-side, shell, utilities
- Language: JavaScript
- Size: 174 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @appgeist/exec
[![NPM version][npm-image]][npm-url]
[![License][license-image]][license-url]Utility function to execute a shell command and return a Promise.
## Usage
```js
const exec = require("@appgeist/exec");const result = await exec(`
identify
-format "%[fx:w/h]"
catz-picture.jpg
`);
```## License
The [ISC License](LICENSE).
[npm-image]: https://img.shields.io/npm/v/@appgeist/exec.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/@appgeist/exec
[license-image]: https://img.shields.io/npm/l/@appgeist/exec.svg?style=flat-square
[license-url]: LICENSE