We just released a new CLI tool for creating HTML reports for NPM Audit! Yay! 🎉🎉🎉
Ever since NPM released the new Audit tool for vulnerability detection, we have wanted a way to generate an HTML report. But no tools to do that existed and we didn’t see one being created in the foreseeable future. So we created a tool to do just that.
You can install the tool from NPM by running:
$ npm i -g npm-audit-html
It’s a fairly simple CLI interface. Once you install the tool, all you have to do is run npm audit — json | npm-audit-html and poof! You have an HTML audit report saved at npm-audit.html. If you want to specify where to save the file, just use the --output option like so npm audit — json | npm-audit-html -o public/npm-audit.html.
Now you are all setup to generate NPM security reports! 🎉🎉🎉