0.2.0 • Published 5 years ago

lockfile-deps v0.2.0

Weekly downloads
19
License
-
Repository
github
Last release
5 years ago

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.