Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports.sync = function (sourceBuffer, resize) {
var result = childProcess.spawnSync(phantomjsCmd, getPhantomJSArgs(resize), {
input: sourceBuffer.toString("base64")
});
return processResult(result);
};
module.exports.sync = (sourceBuffer, options) => {
const result = childProcess.spawnSync(phantomjsCmd, getPhantomJSArgs(options), {
input: sourceBuffer.toString("utf8")
});
return processResult(result);
};