Natively Pluggable Module

    exec-cmds

    1.0.1 • Public • Published

    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

    Install

    npm i exec-cmds

    DownloadsWeekly Downloads

    3

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • zkochan