Socket
Book a DemoInstallSign in
Socket

npmgraph-cli

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npmgraph-cli

Command-line interface for npmgraph

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

npmgraph-cli

Command-line interface for launching the npmgraph web site to show module dependency graphs.

Please note that the npmgraph-cli does not render dependency graphs directly. It's simply a convenience (albeit a pretty powerful one) for opening npmgraph.js.org URLs in accordance with the npmgraph URL API.

Getting Started

To install:

npm install --global npmgraph-cli

To see command help:

npmgraph -h

Examples

CommandShows dependencies...
npmgraph express... for the express package
npmgraph --hide express... with the inspector minimized
npmgraph --color=bus --deps=devDependencies express... colorized by # of maintainers, including devDependencies
npmgraph minimatch cross-env rimraf... for multiple NPM packages
npmgraph -f ./my-project/package.json... for a local package.json file
npmgraph -f my-project/package.json my-project/packages/*/package.json... for multiple local files (useful when local packages depend on one another)
npmgraph https://github.com/npmgraph/npmgraph/blob/main/package.json... for a web-hosted package.json URL

[!NOTE] Web-hosted URLs must be CORS accessible.

Keywords

npmgraph

FAQs

Package last updated on 29 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts