0.1.0 • Published 6 years ago

use-global v0.1.0

Weekly downloads
11
License
-
Repository
-
Last release
6 years ago

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