find-global-packages
find all global packages, list them by directory
Last updated 11 years ago by chrisdickinson .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install find-global-packages 
SYNC missed versions from official npm registry.

find-global-packages

one module to rule them all, one module to find them, one module to bring them all

and in the darkness, lexically bind them

find all globally installed packages, resolving to a list of directories representing global packages.

var findGlobal = require('find-global-packages')

findGlobal(function(err, dirs) {
  // dirs will be a list of strings representing
  // paths to globally installed packages.
})

API

findGlobal(ready :Function(err :{Error|null}, dirs :Array<String>))

Takes a single node-style callback, resolves to either an error or a list of directories. Directories are vetted by the presence of a file called package.json (but not its contents).

License

MIT

Current Tags

  • 0.0.1                                ...           latest (11 years ago)

2 Versions

  • 0.0.1                                ...           11 years ago
  • 0.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |