Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

🔒 Generate a HTML report for NPM Audit

License

NotificationsYou must be signed in to change notification settings

eventOneHQ/npm-audit-html

Repository files navigation

GitHub licensenpmBuild StatusCommitizen friendlyJavaScript Style Guidesemantic-release

Generate a HTML report for NPM Audit

📝 Table of Contents

🏁 Getting Started

$ npm install -g npm-audit-html

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

🎈 Usage

To generate a report, run the following:

$ npm audit --json | npm-audit-html

By default the report will be saved tonpm-audit.html

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

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

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

npm audit --json| npm-audit-html --template ./my-awesome-template.hbs

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:

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

✍️ Authors

See also the list ofcontributors who participated in this project.

🎉 Acknowledgements

  • Hat tip to anyone whose code was used

License

MIT


[8]ページ先頭

©2009-2025 Movatter.jp