acall.js
v0.0.5
Published
A simple wrapper for a node.js spawn call which gives an easy callback to get stdout.
Downloads
12
Readme
acall.js
A simple wrapper for a node.js spawn call which gives an easy callback to get stdout.
Usage
var acall = require("acall.js");
acall("date", function(error, output)
{
if (error)
{
console.log(error);
return;
}
console.log(output);
});
acall([ "echo", "hello" ], function(error, output)
{
if (error)
{
console.log(error);
return;
}
console.log(output);
});
acall("ls", { cwd: "/" }, function(error, output)
{
if (error)
{
console.log(error);
return;
}
console.log(output);
});