Nit-Picking Magistrate

    yarn-audit-html

    1.4.0 • Public • Published

    yarn-audit-html

    Language grade: JavaScript

    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 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 (Grouped by MODULE_NAME, VERISON and CWE). If you want to show all, one-by-one, add the --no-unique option:

    yarn audit --json | yarn-audit-html --no-unique

    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@1.4.0

    Version

    1.4.0

    License

    MIT

    Unpacked Size

    15 kB

    Total Files

    6

    Last publish

    Collaborators

    • davit.yavryan