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

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
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

Viewing dependencies for NPM modules

A single module:

npmgraph express

To see multiple NPM modules:

npmgraph minimatch cross-env rimraf

Viewing dependencies for local package.json files

npmgraph -f my-project/package.json

Note: If your local package.json files depend on other local package.json files, you'll need to include each file on the command line. For example:

npmgraph -f my-project/package.json my-project/packages/*/package.json

Viewing dependencies for web-hosted files

npmgraph has a limited ability to work with files online, however the URL in question needs to be CORS accessible. (Future versions of the npmgraph CLI may remove this restriction.)

npmgraph https://github.com/npmgraph/npmgraph/blob/main/package.json

Keywords

npmgraph

FAQs

Package last updated on 24 Oct 2023

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