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
/* | |
I found it handy to reduce the amount of manual require() lines in a big | |
project by grouping small modules together like below. | |
If you put this code into "index.js" then it'll pick up any other | |
JS modules in that directory and expose them as sub-modules. | |
- Any exports in *this* module would be myPackage.exportName | |
- Any exports in other modules would be myPackage.moduleName.exportName |