Package Exports
- index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (index.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
index.js
Module loader
Installation
npm install index.js
Usage
Example directory structure
models
├── index.js
├── user.js
└── blog.js
In index.js
module.exports = require('index.js')(__dirname);
Models will automatically loaded
var models = require('./models');
models.user == require('./models/user');
License
MIT