Documentation ¶
Index ¶
Constants ¶
View Source
const ( LockfileAsBomSpdx = customParserSpdxSBOM LockfileAsBomCycloneDx = customParserCycloneDXSBOM )
Exporting as constants for use outside this package to refer to specific parsers. For example: Github reader
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Parser ¶
type Parser interface { Ecosystem() string Parse(lockfilePath string) (*models.PackageManifest, error) ParseWithConfig(lockfilePath string, config *ParserConfig) (*models.PackageManifest, error) }
func FindParser ¶
type ParserConfig ¶ added in v1.5.6
type ParserConfig struct { // A generic config flag (not specific to npm even though the name sounds like that) to indicate // if the parser should include non-production dependencies as well. But this will work // only for supported parsers such as npm graph parser IncludeDevDependencies bool }
Click to show internal directories.
Click to hide internal directories.