Search code examples
node.jsnpmreport

Display npm audit vulnerabilities in html format


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


Solution

  • 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