-
-
Save bmeck/0d0b6ad6b394ebb2a3e4 to your computer and use it in GitHub Desktop.
This file contains 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
var where_to_act_as = '.'; | |
var Module = require('module').Module; | |
var mod_dir = require('path').join(where_to_act_as, 'node_modules'); | |
var e = Module._resolveFilename('split', {paths:[mod_dir]}); | |
console.log(require(e)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment