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 PrettyBun(w io.Writer, audit *model.BunAudit, dev model.Device, colorMode string)
- 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)
- func PrettyPnpm(w io.Writer, audit *model.PnpmAudit, dev model.Device, colorMode string)
- func PrettyYarn(w io.Writer, audit *model.YarnAudit, 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 PrettyBun ¶ added in v1.12.0
PrettyBun renders a BunAudit as a verbose, terminal-friendly report.
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.
func PrettyPipConfig ¶ added in v1.11.3
PrettyPipConfig renders a pip-only audit in a verbose, terminal-friendly format. Behind the `--pipconfig` flag.
func PrettyPnpm ¶ added in v1.12.0
PrettyPnpm renders a PnpmAudit as a verbose, terminal-friendly report. The structure mirrors PrettyNPMRC; entries are sorted by scope precedence (global → user → project) then path.
func PrettyYarn ¶ added in v1.12.0
PrettyYarn renders a YarnAudit as a verbose, terminal-friendly report. Surfaces classic + berry flavors side by side and calls out v1-binary-with- berry-file (or vice versa) mismatches.
Types ¶
This section is empty.