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
Since version 4 the closest alternative is child_process.execSync method:
child_process.execSync
const {execSync} = require('child_process'); let output = execSync('prince -v builds/pdf/book.html -o builds/pdf/book.pdf');
⚠️ Note that execSync call blocks event loop.
execSync