🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

find-global-packages

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-global-packages

find all global packages, list them by directory

0.0.1
latest
Source
npm
Version published
Weekly downloads
206
-25.36%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

find

FAQs

Package last updated on 12 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts