I am in the process of porting a CLI library from Ruby over to Node.js. In my code I execute several third party binaries when necessary. I am not sure how best to accomplis
Now you can use shelljs ( from node v4 ) as follows :
var shell = require('shelljs'); shell.echo('hello world'); shell.exec('node --version')