$ 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
If you need to specify base target for the links in generated report you can use --base-target
option (defaults to _self
):
yarn audit --json | yarn-audit-html --base-target _blank
Inspired by npm-audit-html package.