javascript

package
v0.37.7 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Overview

Package javascript provides a concrete Cataloger implementation for JavaScript ecosystem files (yarn and npm).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJavascriptLockCataloger

func NewJavascriptLockCataloger() *common.GenericCataloger

NewJavascriptLockCataloger returns a new Javascript cataloger object base on package lock files.

func NewJavascriptPackageCataloger

func NewJavascriptPackageCataloger() *common.GenericCataloger

NewJavascriptPackageCataloger returns a new JavaScript cataloger object based on detection of npm based packages.

Types

type Dependency

type Dependency struct {
	Version   string `json:"version"`
	Resolved  string `json:"resolved"`
	Integrity string `json:"integrity"`
	Requires  map[string]string
}

Dependency represents a single package dependency listed in the package.lock json file

type PackageLock

type PackageLock struct {
	Requires        bool `json:"requires"`
	LockfileVersion int  `json:"lockfileVersion"`
	Dependencies    map[string]Dependency
}

PackageLock represents a JavaScript package.lock json file

Jump to

Keyboard shortcuts

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