Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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