Is there a way to display the npm audit report as an html page?
At the moment i can only see the option to output the report in json format, using this command:
npm audit --json
I wrote an NPM package that does this for you.
You can use it by running the following:
// first install it
npm i -g npm-audit-html
// then pipe npm audit to it
npm audit --json | npm-audit-html
npm-audit-html is a good package, just used it.
npm install -g npm-audit-html
npm audit --json | npm-audit-html --output report.html
If you are getting the "No Input" response when running through powershell or VS Code Terminal just run it with the command prompt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With