leomelin / yarn-audit-html

Generate a HTML report for Yarn Audit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yarn-audit-html

Language grade: JavaScript

Generate a HTML report for Yarn Audit

Install

$ yarn global add yarn-audit-html

This package uses async/await and requires Node.js 7.6

Usage

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.

License

MIT

About

Generate a HTML report for Yarn Audit

License:MIT License


Languages

Language:HTML 57.2%Language:JavaScript 42.8%