Documentation
¶
Index ¶
- func HTML(outputFile string, result *model.ScanResult) error
- func JSON(w io.Writer, result *model.ScanResult) error
- func Pretty(w io.Writer, result *model.ScanResult, colorMode string) error
- func PrettyNPMRC(w io.Writer, audit *model.NPMRCAudit, dev model.Device, colorMode string)
- func PrettyPipConfig(w io.Writer, audit *model.PipAudit, dev model.Device, colorMode string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTML ¶
func HTML(outputFile string, result *model.ScanResult) error
HTML generates a self-contained HTML report file.
func JSON ¶
func JSON(w io.Writer, result *model.ScanResult) error
JSON writes the scan result as formatted JSON to the given writer.
func PrettyNPMRC ¶ added in v1.11.3
PrettyNPMRC renders an NPMRCAudit as a verbose, terminal-friendly report. It's the implementation behind `--npmrc`: focused, deeper than the default summary, but still scannable.
Types ¶
This section is empty.