UNPKG

spawn-wrap

Version:

Wrap all spawned Node.js child processes by adding environs and arguments ahead of the main JavaScript file argument.

13 lines (9 loc) 190 B
'use strict'; const which = require("which") function whichOrUndefined(executable) { try { return which.sync(executable) } catch (error) { } } module.exports = whichOrUndefined