https://github.com/sdgluck/require-global-node-module
Require a globally installed npm module
https://github.com/sdgluck/require-global-node-module
Last synced: 9 months ago
JSON representation
Require a globally installed npm module
- Host: GitHub
- URL: https://github.com/sdgluck/require-global-node-module
- Owner: sdgluck
- License: mit
- Created: 2017-08-15T10:15:19.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-02T14:10:33.000Z (almost 9 years ago)
- Last Synced: 2024-08-09T20:50:23.298Z (almost 2 years ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# require-global-node-module
> Require a globally installed npm module
See also: [`require-local-node-module`](https://github.com/sdgluck/require-local-node-module)
## Install
```sh
npm install --save require-global-node-module
```
```sh
yarn add require-global-node-module
```
## Import
```js
// ES2015
import requireglobal from 'require-global-node-module'
```
```sh
// 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](http://bit.ly/2aVzthz)!
## License
MIT © [Sam Gluck](github.com/sdgluck)