Metadata-Version: 2.1
Name: npm-audit-checkmk
Version: 0.1.0
Summary: Creates checkmk local check file for npm audit output.
Home-page: https://github.com/certat/npm-audit-check
Maintainer: Sebastian Wagner
Maintainer-email: wagner@cert.at
License: AGPLv3
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: System :: Monitoring
Classifier: Topic :: Security
Requires-Python: >=3.4
Description-Content-Type: text/markdown

# NPM Audit Interpreter and Check MK output generator

This program takes the output of a `npm audit --json` run and interprets it.
The parameters given define the thresholds to be used, and the output is written to the given directory for check mk local checks.

Requirements:
 * An npm installation with the `npm audit` command available.

```bash
> npm_audit_checkmk -f tests/example.json -s 'frontend_vulnerabilities'
<<<local>>>
P frontend_vulnerabilities INFO=0|LOW=7;20|MODERATE=2;10;20|HIGH=55;1;3|CRITICAL=2;0;0 See `npm audit` for more details.
```

## Usage

```bash
pushd /path/to/your/project
npm audit --json | npmauditcheckmk -o /var/lib/check_mk_agent/spool/90000_npm_audit.txt
popd


