0.1.5 • Published 10 years ago

bauer-exec v0.1.5

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

bauer-exec

Wrapper for child_process.spawn.

Installation

npm install bauer-exec

Usage

var Exec = require("bauer-exec");

var nodejs = new Exec({
  cmd: "node",
  args: ["$script$"],
  opts: {
    timeout: 2000
  }
});

nodejs.exec({ script: "./filename.js" },function(error,stdout,stderr) {
  
});

API Summary

  • Exec
    • new Exec(options Object) :Exec
    • .setCmd(cmd String) :void
    • .setCmd(platforms Object) :void
    • .getCmd() :String
    • .setArgs(args Array) :void
    • .getArgs() :Array
    • .setOpts(opts Object) :void
    • .getOpts() :Object
    • .exec(callback Function) :void
    • .exec(params Object, callback Function) :void

License

MIT

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago