node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

ares

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