Execute sync'ed shell commands in Node.js modules if not using Node.js >= 0.12 or IO.js >= 1.10 (like me).
Warning: Be sure what you do while using it!
$~ npm install k-gun-execsync
var execSync = require("k-gun-execsync");
// direct
var output = execSync("ls -la");
console.log(output);
// with callback (not async)
execSync("ls -la", {}, console.log);
execSync("ls -la", {}, function(output){
console.log(output);
});
The MIT License