npm

package
v0.0.0-...-a9a2e41 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	gobom.BaseGenerator

	NpmDevDependencies bool           `gobom:"set to true to include devDependencies"`
	NpmExcludes        *regexp.Regexp `gobom:"regexp of paths to exclude"`
}

Generator generates BOMs for npm projects

func (*Generator) Configure

func (g *Generator) Configure() error

Configure sets the options for this Generator

func (*Generator) GenerateBOM

func (g *Generator) GenerateBOM(path string) (*cyclonedx.BOM, error)

GenerateBOM returns a CycloneDX BOM for the specified package path

Jump to

Keyboard shortcuts

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