Last active
March 17, 2016 21:26
-
-
Save lekoder/5c86efb5a1ef996308c4 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 wires={}; | |
function want(mod) { | |
return function(name) { | |
return wires[name] || (mod || require.main).require(name); | |
} | |
} | |
want.wire = function(name, to) { | |
wires[name] = to; | |
} | |
module.exports = want; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment