Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eventonehq/npm-audit-html

🔒 Generate a HTML report for NPM Audit
https://github.com/eventonehq/npm-audit-html

hacktoberfest html npm npm-audit reporter security

Last synced: about 7 hours ago
JSON representation

🔒 Generate a HTML report for NPM Audit

Awesome Lists containing this project

README

        

npm-audit-html


GitHub license
npm
Build Status
Commitizen friendly
JavaScript Style Guide
semantic-release


Generate a HTML report for NPM Audit

## 📝 Table of Contents

- [Getting Started](#getting_started)
- [Usage](#usage)
- [Contributing](CONTRIBUTING.md)
- [Authors](#authors)
- [Acknowledgments](#acknowledgement)

## 🏁 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 to `npm-audit.html`

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

```bash
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:

```bash
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:
```bash
npm audit --json | npm-audit-html --fatal-exit-code
```

## ✍️ Authors

- [@nprail](https://github.com/nprail) - Maintainer

See also the list of [contributors](https://github.com/eventOneHQ/npm-audit-html/contributors) who participated in this project.

## 🎉 Acknowledgements

- Hat tip to anyone whose code was used

## License

[MIT](LICENSE)