Emit machine-readable audit results.

Section: Audit and security

Audit as JSON

bash
bash
npm audit --json
Explanation

Emit machine-readable audit results.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Audit and security
Run audit
Audit installed dependencies for known vulnerabilities.
OpenIn sheetbashsame section
Automatically fix audit issues
Apply compatible fixes for known vulnerabilities.
OpenIn sheetbashsame section
Force risky audit fixes
Apply broader updates that may include breaking changes.
OpenIn sheetbashsame section
Show outdated dependencies
Include transitive packages where supported.
OpenIn sheetbashsame section
List top-level packages only
Show only direct dependencies.
OpenIn sheetbash1 tag match
List org members
List users in an npm organization.
OpenIn sheetbash1 tag match