npm

package
Version: v0.0.0-...-1a8939e Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL