Require a globally installed npm module
See also: require-local-node-module
npm install --save require-global-node-module
yarn add require-global-node-module
// ES2015
import requireglobal from 'require-global-node-module'
// CommonJS
var requireglobal = require('require-global-node-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
.
All pull requests and issues welcome!
If you're not sure how, check out the great video tutorials on egghead.io!
MIT © Sam Gluck