npmutils

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateDependenciesList

func CalculateDependenciesList(typeRestriction TypeRestriction, npmArgs []string, executablePath, buildInfoModuleId string) (dependenciesList map[string]*Dependency, err error)

func FindNpmExecutable

func FindNpmExecutable() (path string, err error)

Types

type Dependency

type Dependency struct {
	Name       string
	Version    string
	Scopes     []string
	FileType   string
	Checksum   *buildinfo.Checksum
	PathToRoot [][]string
}

func (*Dependency) GetPathToRoot

func (dep *Dependency) GetPathToRoot() [][]string

type TypeRestriction

type TypeRestriction int
const (
	DefaultRestriction TypeRestriction = iota
	All
	DevOnly
	ProdOnly
)

Jump to

Keyboard shortcuts

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