security-reporter
v1.0.9
Published
Security and quality reporter for Node.js projects. Scans for vulnerabilities, secrets, outdated dependencies, and generates comprehensive reports (console, Markdown, PDF).
Downloads
1,003
Maintainers
Readme
License: MIT © Erik Sturesson
🛡️ Security Reporter
Security and quality reporter for Node.js projects
Security and quality reporting for Node.js projects — local scans that produce terminal output and shareable artifacts.
IMPORTANT: Add /reports to your project's .gitignore to avoid committing generated reports (e.g. reports/security-report.json, reports/security-report.pdf).
Install
# Global (run `security-reporter` directly)
npm install -g security-reporter
# Or add to your project
npm install --save-dev security-reporter
# Or run once with npx
npx security-reporterQuickstart
- From your project root run a scan:
# Run once
npx security-reporter
# Or via package.json script
npm run report- Open generated reports in
reports/:
reports/security-report.json— machine-readable JSONreports/security-report.html— human-friendly HTMLreports/security-report.pdf— printable PDF
Highlights
Local scans:
npm audit, secret scanning, dependency and license checksOutputs: terminal, JSON, HTML and PDF
Scans run locally by default; no data is transmitted externally.
.envand other potential secrets are scanned locally and masked in reports.Note: optional registry/network checks are disabled by default. Some underlying tools (for example
npm audit) may contact the npm registry when run.
See the full changelog for recent changes and release notes: CHANGELOG.md.
CI example
steps:
- run: npm ci
- run: npx security-reporter
- upload: reports/See the full changelog in CHANGELOG.md.
