JSPM

require-component

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3962
  • Score
    100M100P100Q136884F
  • License MIT

Require component and npm modules

Package Exports

  • require-component

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 (require-component) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

require-component

Require component and npm modules

Installation

$ component install camshaft/require-component

API

// Wrap require
require = require('require-component')(require);

// Works in component and npm environments
var each = require('each');

You can also specify the npm fallback:

var each = require('each', 'my-npm-each-implementation');

License

MIT