npm-remote-ls
Examine a package's dependency graph before you install it.
Installation
npm install npm-remote-ls -g
Usage
Listing Package Dependencies
npm-remote-ls sha@1.2.4
└─ sha@1.2.4
├─ readable-stream@1.0.27-1
│ ├─ isarray@0.0.1
│ ├─ string_decoder@0.10.25
│ ├─ inherits@2.0.1
│ └─ core-util-is@1.0.1
└─ graceful-fs@3.0.2
Help!
There are various command line flags you can toggle for npm-remote-ls
, for
details run:
npm-remote-ls --help
API
Return dependency graph for latest
version:
var ls = ls; ;
Return dependency graph for specific version:
var ls = ls; ;
Return a flattened list of dependencies:
var ls = ls; ;
Configure to only return production dependencies:
var ls = lsvar config = config
License
ISC