output

package
v1.18.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 Pretty

func Pretty(w io.Writer, result *model.ScanResult, colorMode string) error

Pretty writes human-readable formatted output.

func PrettyBun added in v1.12.0

func PrettyBun(w io.Writer, audit *model.BunAudit, dev model.Device, colorMode string)

PrettyBun renders a BunAudit as a verbose, terminal-friendly report.

func PrettyNPMRC added in v1.11.3

func PrettyNPMRC(w io.Writer, audit *model.NPMRCAudit, dev model.Device, colorMode string)

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

func PrettyPipConfig(w io.Writer, audit *model.PipAudit, dev model.Device, colorMode string)

PrettyPipConfig renders a pip-only audit in a verbose, terminal-friendly format. Behind the `--pipconfig` flag.

func PrettyPnpm added in v1.12.0

func PrettyPnpm(w io.Writer, audit *model.PnpmAudit, dev model.Device, colorMode string)

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

func PrettyYarn(w io.Writer, audit *model.YarnAudit, dev model.Device, colorMode string)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL