require-component

0.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i require-component

Weekly Downloads

4,193

Version

0.1.1

License

MIT

Last publish

Collaborators

  • camshaft