require-global-node-module

1.1.0 • Public • Published

require-global-node-module

Require a globally installed npm module

See also: require-local-node-module

Install

npm install --save require-global-node-module
yarn add require-global-node-module

Import

// ES2015
import requireglobal from 'require-global-node-module'
// CommonJS
var requireglobal = require('require-global-node-module')

Usage

requireGlobal (module) : *

Require a globally installed npm module.

  • module {String} (required) Name of the module to require

Returns the required module as per usual calls to require.

Contributing

All pull requests and issues welcome!

If you're not sure how, check out the great video tutorials on egghead.io!

License

MIT © Sam Gluck

Package Sidebar

Install

npm i require-global-node-module

Weekly Downloads

4

Version

1.1.0

License

MIT

Last publish

Collaborators

  • sdgluck