Emit machine-readable audit results.
Section: Audit and security
Audit as JSON
bash
bash
npm audit --jsonExplanation
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
Automatically fix audit issues
Apply compatible fixes for known vulnerabilities.
Force risky audit fixes
Apply broader updates that may include breaking changes.