require-global-node-module
v1.1.0
Published
Require a globally installed npm module
Downloads
50
Maintainers
Readme
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