Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
algorithm(buffer, opts, cb) {
const result = brotli(buffer);
if (result) {
cb(null, Buffer.from(result));
} else {
cb(null, buffer);
}
},
}),