JSPM

index.js

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4914
  • Score
    100M100P100Q114407F
  • License MIT

Module loader

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