A simple wrapper around childProcess.exec that helps keep processing launching code clean
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
ares.js
package.json

README.md

A very simple wrapper around childProcess.exec that just executes commands. It doesn't give you any option to respond to errors or return values. It's useful for launching scripts or executables and keeping code clean.

Installation

npm install ares

Usage

var ares = require('ares').ares;

ares("python C:/MyScript.py");
ares("C:/SomeProgram.exe --option='yup'");

An optional second parameter logs everything from stdout and stderr

var ares = require('ares').ares;
ares("python C:/MyScript.py", true);

Note: The name doesn't mean anything, it's just short and easy to type