1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 10:02:10 +02:00
tldr/pages/common/pnpm-audit.md
Mouaz Aldakkak cca1c921b4
pnpm-{audit, outdated}: add page (#12437)
* feat: add pnpm audit commands and fix tldr-lint errors

* feat: add pnpm outdated commands and fix tldr-lint errors

* feat(pnpm-audit): add severity level of vulnerabilities option

* fix: improve general description based on tldr style-guide

* fix(pnpm-audit): improve general writing

* fix: resolve code review suggestion

* fix: apply code review suggestion of @kbdharun
2024-03-03 15:15:44 +05:30

759 B

pnpm audit

Scan project dependencies. Check for known security issues with the installed packages. More information: https://pnpm.io/cli/audit.

  • Identify vulnerabilities in the project:

pnpm audit

  • Automatically fix vulnerabilities:

pnpm audit fix

  • Generate a security report in JSON format:

pnpm audit --json > {{path/to/audit-report.json}}

  • Audit only [D]ev dependencies:

pnpm audit --dev

  • Audit only [P]roduction dependencies:

pnpm audit --prod

  • Exclude optional dependencies from the audit:

pnpm audit --no-optional

  • Ignore registry errors during the audit process:

pnpm audit --ignore-registry-errors

  • Filter advisories by severity (low, moderate, high, critical):

pnpm audit --audit-level {{severity}}