Socket
Socket
Sign inDemoInstall

find-global-packages

Package Overview
Dependencies
2
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    find-global-packages

find all global packages, list them by directory


Version published
Weekly downloads
158
decreased by-67.01%
Maintainers
1
Install size
28.6 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 12 Mar 2014

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc