lockfile-deps
v0.2.0
Published
list dependencies for a specific package based on the lock
Downloads
3
Readme
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.