Help us shape the future of Go! Take the 2026 Go Developer Survey

npm

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScanNpmProject

func ScanNpmProject(ctx context.Context) ([]model.Module, error)

Types

type Inspector

type Inspector struct{}

func (*Inspector) CheckDir

func (i *Inspector) CheckDir(dir string) bool

func (*Inspector) InspectProject

func (i *Inspector) InspectProject(ctx context.Context) error

func (*Inspector) String

func (i *Inspector) String() string

func (*Inspector) SupportFeature added in v1.9.2

func (i *Inspector) SupportFeature(feature model.InspectorFeature) bool

type NpmPkgLock

type NpmPkgLock struct {
	Name            string `json:"name"`
	Version         string `json:"version"`
	LockfileVersion int    `json:"LockfileVersion"`
	Dependencies    map[string]struct {
		Version  string                 `json:"version"`
		Requires map[string]interface{} `json:"requires"`
	} `json:"dependencies"`
}

Jump to

Keyboard shortcuts

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