mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-10 21:01:41 +00:00
update
This commit is contained in:
9
node_modules/which-module/index.js
generated
vendored
Normal file
9
node_modules/which-module/index.js
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = function whichModule (exported) {
|
||||
for (var i = 0, files = Object.keys(require.cache), mod; i < files.length; i++) {
|
||||
mod = require.cache[files[i]]
|
||||
if (mod.exports === exported) return mod
|
||||
}
|
||||
return null
|
||||
}
|
Reference in New Issue
Block a user