fluent-exec A fluent interface for shell execution in Node.js var exec = require('fluent-exec'); exec.command('echo your command') .then(function(stdout) { // the command was successful }) .catch(function(reason) { // an error occurred });