$ yarn global add yarn-audit-html
This package uses async/await and requires Node.js 7.6
To generate a report, run the following:
$ yarn audit --json | yarn-audit-html
By default the report will be saved to yarn-audit.html
If you want to specify the output file, add the --output
option:
yarn audit --json | yarn-audit-html --output report.html
Unique vulnerability list will be generated by default. If you want to show all, one-by-one, add the --no-unique
option:
yarn audit --json | yarn-audit-html --no-unique
You can also fully customize the generated report by providing --template
option followed by your own EJS template:
yarn audit --json | yarn-audit-html --template ./my-awesome-template.ejs
Inspired by npm-audit-html package.