exec-cmds

Executes a list of commands.

Usage no npm install needed!

<script type="module">
  import execCmds from 'https://cdn.skypack.dev/exec-cmds';
</script>

README

exec-cmds

Executes a list of commands.

Dependency Status Build Status npm version

Installation

npm install --save exec-cmds

Usage example

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