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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.14,192latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.14,192
0.1.01

Package Sidebar

Install

npm i require-component

Weekly Downloads

3,364

Version

0.1.1

License

MIT

Last publish

Collaborators

  • camshaft