Created
September 28, 2017 20:29
-
-
Save patbonecrusher/eeb27bfcf8ab49a8589afc87b3a341cc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// paste this before your require child_process at the beginning of your main index file. | |
(function() { | |
var childProcess = require("child_process"); | |
var oldSpawn = childProcess.spawn; | |
function mySpawn() { | |
console.log('spawn called'); | |
console.log(arguments); | |
var result = oldSpawn.apply(this, arguments); | |
return result; | |
} | |
childProcess.spawn = mySpawn; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment