Nodeschool Public Materials

    yarn-audit-html

    3.0.1 • Public • Published

    yarn-audit-html

    Language grade: JavaScript Gitter

    Buy me a coffee

    Generate a HTML report for Yarn Audit

    Install

    yarn global add yarn-audit-html

    Usage

    To generate a report, run the following:

    yarn audit --json | yarn-audit-html

    By default, unique vulnerability list will be generated (Grouped by MODULE_NAME, VERSION and CWE) 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

    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

    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-audit-html --fatal-exit-code

    Inspired by npm-audit-html package.

    License

    MIT

    Install

    npm i yarn-audit-html

    DownloadsWeekly Downloads

    5,494

    Version

    3.0.1

    License

    MIT

    Unpacked Size

    16.8 kB

    Total Files

    6

    Last publish

    Collaborators

    • davit.yavryan