use-global

0.1.0 • Public • Published

use-global v0.1.0

Tries to load the given module name by looking in:

  • $NODE_PATH
  • ~/.node_modules
  • npm root -g
let useGlobal = require('use-global')
 
// Load a module that is globally installed.
let coffee = useGlobal('coffeescript')
 
// Inspect or mutate the roots array.
useGlobal.roots

Readme

Keywords

none

Package Sidebar

Install

npm i use-global

Weekly Downloads

1

Version

0.1.0

License

none

Unpacked Size

2.29 kB

Total Files

4

Last publish

Collaborators

  • aleclarson