-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Not sure if this would be possible... but in node, something that I really like is being able to specify an index.js file, which will load when a directory is passed to require.
Soo... if you had directory foo in your root, which contained an index.js file, you could load it by doing:
var foo = require('foo');
This could be nice when you're trying to avoid stuff like:
using ('components/modal/modal', function () {}); //where modal.js is one of many modal files
Metadata
Metadata
Assignees
Labels
No labels