use-global
v0.1.0
Published
Tries to load the given module name by looking in: - `$NODE_PATH` - `~/.node_modules` - `npm root -g`
Readme
use-global v0.1.0
Tries to load the given module name by looking in:
$NODE_PATH~/.node_modulesnpm 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