
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
npm-audit-html
Advanced tools
Generate a HTML report for NPM Audit
$ npm install -g npm-audit-html
This package uses async/await and requires Node.js 7.6
To generate a report, run the following:
$ npm audit --json | npm-audit-html
By default the report will be saved to npm-audit.html
If you want to specify the output file, add the --output option:
npm audit --json | npm-audit-html --output report.html
You can also fully customize the generated report by providing --template option followed by your own handlebars template:
npm audit --json | npm-audit-html --template ./my-awesome-template.hbs
If you'd like the generator to exit with non-zero exit code when vulnerabilities are found, you can add the --fatal-exit-code option:
npm audit --json | npm-audit-html --fatal-exit-code
See also the list of contributors who participated in this project.
FAQs
Generate a HTML report for NPM Audit
We found that npm-audit-html demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.