Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ps.on ('exit', code => {
return_ ({
failed: code !== 0,
output,
hasOutput: output.trim ().length > 0,
hasWarnings,
warnings: ansi.strip (stderr).match (/^\[[^\]]+\]/g) || []
})
})