Skip to main content

Description

Recursively scans node_modules directories to list all installed packages. This is helpful for auditing dependencies across monorepos and understanding what packages are actually installed.

Usage

rev-dep node-modules installed [flags]

Examples

# List all installed packages
rev-dep node-modules installed

# List packages from a specific organization
rev-dep node-modules installed --include-modules=@myorg/*

# Exclude specific packages from the list
rev-dep node-modules installed --exclude-modules=@types/*

# List packages in a different directory
rev-dep node-modules installed --cwd=/path/to/project

Flags

-c, --cwd
string
default:"$PWD"
Working directory for the command
-e, --exclude-modules
strings
List of modules to exclude from the output
-h, --help
boolean
Help for installed
-i, --include-modules
strings
List of modules to include in the output

Use Cases

Dependency Auditing

Get a complete list of all installed packages across your project, including nested dependencies.

Monorepo Management

Scan multiple node_modules directories in a monorepo to understand the full dependency tree.

Organization Packages

Use --include-modules=@yourorg/* to filter packages from your organization.
This command scans the actual node_modules directories, not just package.json files. It shows what is actually installed on disk.

Build docs developers (and LLMs) love