npm-graph

Prints a dependency graph of modules that is actually required

npm install npm-graph
14 downloads in the last week
16 downloads in the last month

npm graph

Build Status Dependency Status unstable

npm ls, but without dependencies that are not explicitly required

Usage

Install globally and give it a path to a local package or a file:

$ npm install -g npm-graph

# no arguments - npm modules only
$ npm-graph irc-stream/
irc-stream
 └───irc

# show builtins
$ npm-graph irc-stream/ -b
irc-stream
 ├──┬irc
 │  ├───net
 │  ├───tls
 │  └───util
 └───stream

# show local files
$ npm-graph irc-stream/ -l
irc-stream
 └──┬irc
    ├───./codes
    └───./colors

License

MIT-Licensed. See LICENSE file for details.

npm loves you