1.1.0 • Published 8 years ago
require-global-node-module v1.1.0
require-global-node-module
Require a globally installed npm module
See also: require-local-node-module
Install
npm install --save require-global-node-moduleyarn add require-global-node-moduleImport
// 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