Skip to content
List dependencies of a given package in an npm lockfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test/fixtures
.eslintrc
.gitignore
.prettierrc
README.md
package-lock.json
package.json

README.md

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"
  },
  ...
]
You can’t perform that action at this time.