const hbjs = require('handbrake-js'); hbjs.exec({ "preset-list": true }, (err, stdout, stderr) => { if (err) throw err; console.log(stdout); });