Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zkochan/exec-cmds
Executes a list of commands.
https://github.com/zkochan/exec-cmds
Last synced: 10 days ago
JSON representation
Executes a list of commands.
- Host: GitHub
- URL: https://github.com/zkochan/exec-cmds
- Owner: zkochan
- License: mit
- Created: 2015-08-18T21:21:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-25T19:48:53.000Z (about 8 years ago)
- Last Synced: 2024-11-25T08:41:05.239Z (28 days ago)
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# exec-cmds
Executes a list of commands.
[![Dependency Status](https://david-dm.org/zkochan/exec-cmds/status.svg?style=flat)](https://david-dm.org/zkochan/exec-cmds)
[![Build Status](http://img.shields.io/travis/zkochan/exec-cmds.svg?style=flat)](https://travis-ci.org/zkochan/exec-cmds)
[![npm version](https://badge.fury.io/js/exec-cmds.svg)](http://badge.fury.io/js/exec-cmds)## Installation
```
npm install --save exec-cmds
```## Usage example
```js
const execCmds = require('exec-cmds');let cwd = path.resolve(process.cwd());
let cmds = [
'mkdir foo',
'rm -rf foo'
];
execCmds(cmds, {
cwd,
env: {
FOO_BAR: 'Hello world!'
}
});
```## License
MIT