javascript

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package javascript provides a concrete Cataloger implementation for packages relating to the JavaScript language ecosystem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLockCataloger

func NewLockCataloger(cfg CatalogerConfig) pkg.Cataloger

NewLockCataloger returns a new cataloger object for NPM (and NPM-adjacent, such as yarn) lock files.

func NewPackageCataloger

func NewPackageCataloger() pkg.Cataloger

NewPackageCataloger returns a new cataloger object for NPM.

Types

type CatalogerConfig

type CatalogerConfig struct {
	SearchRemoteLicenses bool   `json:"search-remote-licenses" yaml:"search-remote-licenses" mapstructure:"search-remote-licenses"`
	NPMBaseURL           string `json:"npm-base-url" yaml:"npm-base-url" mapstructure:"npm-base-url"`
}

func DefaultCatalogerConfig

func DefaultCatalogerConfig() CatalogerConfig

func (CatalogerConfig) WithNpmBaseURL

func (j CatalogerConfig) WithNpmBaseURL(input string) CatalogerConfig

func (CatalogerConfig) WithSearchRemoteLicenses

func (j CatalogerConfig) WithSearchRemoteLicenses(input bool) CatalogerConfig

Jump to

Keyboard shortcuts

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