Socket
Socket
Sign inDemoInstall

lockfile-deps

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lockfile-deps

list dependencies for a specific package based on the lock


Version published
Maintainers
1
Install size
403 kB
Created

Readme

Source

lockfile-deps

lists recursive dependencies for a package by parsing npm-shrinkwrap.json or package-lock.json

Install

npm i -g lockfile-deps

Example

lockfile-deps @babel/highlight

// reads <cwd>/package-lock.json or <cwd>/npm-shrinkwrap.json and outputs:
[
  {
    "name": "@babel/highlight",
    "version": "7.0.0"
  },
  {
    "name": "ansi-styles",
    "version": "3.2.1"
  },
  {
    "name": "chalk",
    "version": "2.4.2"
  },
  ...
]

Advanced examples

lockfile-deps @babel/highlight @babel/parser

Prints dependencies from multiple packages.

lockfile-deps

If no packages are specified, the root project is used.

Keywords

FAQs

Last updated on 04 Sep 2019

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