Expand description

This parses the output of npm-audit

npm-audit

Structs

advisory in report version 1

The vulnerability and dependency counts returned by npm-audit

findings in advisory in report version 1

The vulnerability and dependency counts returned by npm-audit in report version 1

The vulnerability and dependency counts returned by npm-audit in report version 2

audit report version 1

audit report version 2

Which advisories are resolved by an action

The vulnerability and dependency counts returned by npm-audit in report version 1

The vulnerability and dependency counts returned by npm-audit in report version 2

The details for a single vulnerable package

Enums

Actions to perform to fix security issues

a single fix

What the exit code indicated about required updates

This is used to return the data from audit() but not used for parsing since we can not easily tell serde how to decide which to use and the untagged union error messages are not great

Severity of vulnerabilities

a single vulnerability

Functions

main entry point for the npm-audit call

helper to parse module paths

helper to parse Vec of module paths

helper to parse updated and deleted in the correct format (default time serde implementation seems to use a different format)

helper to parse created in the correct format (default time serde implementation seems to use a different format)

helper to serialize module paths

helper to serialize Vec of module paths

helper to serialize updated and deleted in the correct format (default time serde implementation seems to use a different format)

helper to serialize created in the correct format (default time serde implementation seems to use a different format)