Natural Performance Manager
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    rex-execpublic

    rex-exec

    A small set of functions designed to provide a simple way to execute shell commands and process the output.

    Assuming var rexec = require('rex-exec')

    Execute a single command in a different directory

    rexec(dir, command, done)
    

    Accepts one callback

    done(stderr, stdout)
    

    Execute a single command

    rexec(command, done)
    

    Accepts one callback

    done(stderr, stdout)
    

    Execute an array of commands

    rexec(commands, done, each)
    

    Accepts two callbacks:

    done(output)
    
    each(stderr, stdout)
    

    Execute multiple commands in a different directory:

    rexec.batch(dir, commands, done, each)
    

    Accepts two callbacks:

    done(output)
    
    each(stderr, stdout)
    

    Run test suite with npm test

    MIT License, 2013

    Pierce Moore rex me@prex.io

    Keywords

    none

    install

    npm i rex-exec

    Downloadsweekly downloads

    40

    version

    0.2.0

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar