https://github.com/arshadkazmi42/command-exec
Promisified shell commands executer
https://github.com/arshadkazmi42/command-exec
commands executor linux linux-commands nodejs shell
Last synced: 6 months ago
JSON representation
Promisified shell commands executer
- Host: GitHub
- URL: https://github.com/arshadkazmi42/command-exec
- Owner: arshadkazmi42
- License: mit
- Created: 2019-10-06T19:02:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-10T10:26:01.000Z (almost 3 years ago)
- Last Synced: 2024-11-28T00:34:52.314Z (7 months ago)
- Topics: commands, executor, linux, linux-commands, nodejs, shell
- Language: JavaScript
- Homepage:
- Size: 80.1 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# command-exec
[](https://github.com/arshadkazmi42/command-exec/actions/workflows/nodejs.yml)
[](https://www.npmjs.com/package/command-exec)
[](https://www.npmjs.com/package/command-exec)
[](https://github.com/arshadkazmi42/command-exec)
[](https://github.com/arshadkazmi42/command-exec/blob/master/LICENSE)
[](https://github.com/arshadkazmi42/command-exec/graphs/contributors)
[](https://github.com/arshadkazmi42/command-exec/commits/master)Execute promisified shell (linux) commands in Nodejs
## Install
```
npm i command-exec
```## Usage
```javascript
const $cExec = require('command-exec');
( async () => {
const result = $cExec('ls');
console.log(result);
})();// OUTPUT
// eslintrc.json
// .git
// .gitignore
// .travis.yml
// LICENSE
// README.md
// index.js
// node_modules
// package-lock.json
// package.json
// tests```
## Contributing
Interested in contributing to this project?
You can log any issues or suggestion related to this library [here](https://github.com/arshadkazmi42/command-exec/issues/new)Read our contributing [guide](CONTRIBUTING.md) on getting started with contributing to the codebase