Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return new Promise(function(resolve, reject) {
safeps.exec(command, opts, function(err, stdout) {
if (err) return reject(new Errlop(`exec failed: ${command}`, err))
return resolve(stdout)
})
})
}