Fighting back against node's over-modularity
github.com
github.com
node and the npm ecosystem have a healthy amount of modularity. Sindre Sorhus releases modules for single regexes[1].
[1]: https://github.com/sindresorhus/filename-reserved-regex/blob...
acc[camelcase(dependency)] = require(dependency);
could be replaced with: Object.defineProperty(acc,camelcase(dependency),{get:function(){ return require(dependency) }})
and you'd get demand-loading!