How to use the pn/child_process.spawnSync function in pn

To help you get started, we’ve selected a few pn examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github isleofcode / splicon / vendor / svg2png / svg2png.js View on Github external
module.exports.sync = function (sourceBuffer, resize) {
    var result = childProcess.spawnSync(phantomjsCmd, getPhantomJSArgs(resize), {
        input: sourceBuffer.toString("base64")
    });
    return processResult(result);
};
github domenic / svg2png / lib / svg2png.js View on Github external
module.exports.sync = (sourceBuffer, options) => {
    const result = childProcess.spawnSync(phantomjsCmd, getPhantomJSArgs(options), {
        input: sourceBuffer.toString("utf8")
    });
    return processResult(result);
};