LinuxCommandLibrary

pnpm-audit

Scan project dependencies.

TLDR

Identify vulnerabilities in the project

$ pnpm audit
copy


Automatically fix vulnerabilities
$ pnpm audit fix
copy


Generate a security report in JSON format
$ pnpm audit --json > [path/to/audit-report.json]
copy


Audit only [D]ev dependencies
$ pnpm audit --dev
copy


Audit only [P]roduction dependencies
$ pnpm audit --prod
copy


Exclude optional dependencies from the audit
$ pnpm audit --no-optional
copy


Ignore registry errors during the audit process
$ pnpm audit --ignore-registry-errors
copy


Filter advisories by severity (low, moderate, high, critical)
$ pnpm audit --audit-level [severity]
copy

Copied to clipboard