7.3.2 • Published 2 years ago

yarn-audit-html v7.3.2

Weekly downloads
3,819
License
MIT
Repository
github
Last release
2 years ago

yarn-audit-html

npm.io npm.io npm.io npm.io npm.io npm.io npm.io

PayPal.me Buy me a coffee

Generate a HTML report for Yarn Audit

Install

yarn add -D yarn-audit-html
# or globally
yarn global add yarn-audit-html

Usage

To generate a report, run the following:

Yarn V1

yarn audit --json | yarn yarn-audit-html

Yarn V2+

yarn npm audit --json | yarn yarn-audit-html

By default, unique vulnerability list will be generated (Grouped by MODULE_NAME, VERSION, VULNERABLE_VERSIONS, ADVISORY_CREATED_DATE and CWE) to yarn-audit.html. This way, even if same version of package has multiple vulnerabilities, they will be counted.

If you want to specify the output file, add the --output option:

yarn audit --json | yarn yarn-audit-html --output report.html

You can also fully customize the generated report by providing --template option followed by your own EJS template:

yarn audit --json | yarn yarn-audit-html --template ./my-awesome-template.ejs

There is also a possibility to change default theme(materia) to any of available in Bootswatch with --theme option followed by theme name: p.s. In future major release default template will change to dark theme.

yarn audit --json | yarn yarn-audit-html --theme darkly

If you'd like the generator to exit with non-zero exit code when vulnerabilities are found, you can add the --fatal-exit-code option:

yarn audit --json | yarn yarn-audit-html --fatal-exit-code

Inspired by npm-audit-html package.

See changelog here.

7.3.2

2 years ago

7.3.1

2 years ago

7.3.0

2 years ago

5.0.0

2 years ago

6.1.0

2 years ago

6.0.0

2 years ago

6.2.0

2 years ago

7.0.0

2 years ago

7.2.0

2 years ago

7.1.1

2 years ago

7.0.2

2 years ago

7.1.0

2 years ago

7.0.1

2 years ago

7.2.1-rc.0

2 years ago

4.0.1

2 years ago

4.0.0

3 years ago

3.0.1

4 years ago

2.1.0

4 years ago

3.0.0

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.4.0

5 years ago

1.3.4

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.3

5 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.4.0

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago