UNPKG

1.93 kBMarkdownView Raw
1# yarn-audit-html
2
3![](https://img.shields.io/david/davityavryan/yarn-audit-html.svg?style=flat-square)
4![](https://img.shields.io/david/dev/davityavryan/yarn-audit-html.svg?style=flat-square)
5![](https://img.shields.io/david/peer/davityavryan/yarn-audit-html.svg?style=flat-square)
6![](https://img.shields.io/github/last-commit/davityavryan/yarn-audit-html.svg?style=flat-square)
7![](https://img.shields.io/snyk/vulnerabilities/npm/yarn-audit-html.svg?style=flat-square)
8[![](https://img.shields.io/lgtm/alerts/g/davityavryan/yarn-audit-html.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/davityavryan/yarn-audit-html/alerts/)
9[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/davityavryan/yarn-audit-html.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/davityavryan/yarn-audit-html/context:javascript)
10[![](https://flat.badgen.net/packagephobia/install/yarn-audit-html)](https://packagephobia.now.sh/result?p=yarn-audit-html)
11
12## Generate a HTML report for Yarn Audit
13
14## Install
15
16```bash
17yarn global add yarn-audit-html
18```
19
20## Usage
21
22To generate a report, run the following:
23
24```bash
25yarn audit --json | yarn-audit-html
26```
27
28By default the report will be saved to `yarn-audit.html`
29
30If you want to specify the output file, add the `--output` option:
31
32```bash
33yarn audit --json | yarn-audit-html --output report.html
34```
35
36Unique vulnerability list will be generated by default (Grouped by `MODULE_NAME`, `VERISON` and `CWE`). If you want to show all, one-by-one, add the `--no-unique` option:
37
38```bash
39yarn audit --json | yarn-audit-html --no-unique
40```
41
42You can also fully customize the generated report by providing `--template` option followed by your own EJS template:
43
44```bash
45yarn audit --json | yarn-audit-html --template ./my-awesome-template.ejs
46```
47
48Inspired by [npm-audit-html](https://github.com/Filiosoft/npm-audit-html) package.
49
50## License
51
52[MIT](LICENSE.md)