Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
io(input: string, output: string) {
const { color = 256 } = this.options
const pngquantBinFixed = pngquantBin.replace('app.asar', 'app.asar.unpacked')
return spawn(pngquantBinFixed, [
color.toString(),
input,
'-o',
output,
], {
capture: [ 'stdout', 'stderr' ],
}).catch(e => {
throw new Error(e.message + '\n' + e.stderr)
})
}
}