JSPM

exec-cmds

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 58
  • Score
    100M100P100Q61992F
  • License MIT

Executes a list of commands.

Package Exports

  • exec-cmds

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (exec-cmds) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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