npm-audit
Scan project dependencies for known security vulnerabilities. tldr-pages
On several platforms
Several platforms
Scan the project's dependencies for known vulnerabilities
npm auditIdentifyAutomatically fix vulnerabilities in the project's dependencies
npm audit fixIdentifyForce an automatic fix to dependencies with vulnerabilities
npm audit fix --forceIdentifyUpdate the lock file without modifying the node_modules directory
npm audit fix --package-lock-onlyIdentifySimulate the fix process without making any changes
npm audit fix --dry-runIdentifyOutput audit results in JSON format
npm audit --jsonIdentifyConfigure the audit to only fail on vulnerabilities above a specified severity
npm audit --audit-level infoIdentify