koffi
Version:
Fast and simple C FFI (foreign function interface) for Node.js
15 lines (13 loc) • 479 B
JavaScript
// Makes sure that child processes are spawned appropriately.
exports.spawnSync = function (command, args, options) {
if (require('../index').needsFlag) {
args.splice(0, 0, '--napi-modules');
}
return require('child_process').spawnSync(command, args, options);
};
exports.spawn = function (command, args, options) {
if (require('../index').needsFlag) {
args.splice(0, 0, '--napi-modules');
}
return require('child_process').spawn(command, args, options);
};