Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ls-installed-deps

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ls-installed-deps

Recursively gathers names and versions of installed dependencies

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

ls-installed-deps

StandardJS travis-ci build status Coverage status

Recursively gathers names and versions of installed dependencies

The different between this package and similar existing packages is it relies entirely on your package.json and that of your dependencies installed in node_modules. Other packages (e.g. lsmod) use things like require.cache which is dependent on runtime of your app.

Install

yarn add ls-installed-deps

# or npm
npm install ls-installed-deps

Use

const lsDeps = require('ls-installed-deps')

lsDeps(opts)
//> { lodash: '4.17.11' }

Options

cwd

String

Default: process.cwd()

devDeps

Boolean

Default: false

Include devDependencies in the result

shallow

Boolean

Default: false

Instead of recursively finding all deps and sub-deps, only find top-level deps of the cwd

License

MIT

Keywords

FAQs

Package last updated on 17 Jan 2019

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc