How to change the Node.js module wrapper?
<p>For testing purposes I need to change the Node.js <code>Module</code> wrapper.</p>

<pre><code>(function (exports, require, module, __filename, __dirname, process, global) {  
    debugger;
 });
</code></pre>

<p>Played around with <code>Module</code> I found </p>

<pre><code>var Module = require("module")
Module.wrapper
-&gt; ["(function (exports, require, module, __filename, __dirname, process, global) { ", "
});"]

Module.wrap
-&gt; function(script) {
    return NativeModule.wrapper[0] + script + NativeModule.wrapper[1];
}
</code></pre>

<p>Is it possible to hook into <code>Module.wraper</code> or property to change the script wrapping?</p>