Documentation ¶
Index ¶
- func CalculateDependenciesList(typeRestriction TypeRestriction, npmArgs []string, ...) (dependenciesList map[string]*Dependency, err error)
- func FindNpmExecutable() (path string, err error)
- func IsNpmCommand(cmd string) bool
- func RunList(flags, executablePath string) (stdResult, errResult []byte, err error)
- type Dependency
- type NpmConfig
- type TypeRestriction
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 IsNpmCommand ¶ added in v2.1.0
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 NpmConfig ¶ added in v2.1.0
type NpmConfig struct { Npm string Command []string CommandFlags []string StrWriter io.WriteCloser ErrWriter io.WriteCloser }
func (*NpmConfig) GetErrWriter ¶ added in v2.1.0
func (config *NpmConfig) GetErrWriter() io.WriteCloser
func (*NpmConfig) GetStdWriter ¶ added in v2.1.0
func (config *NpmConfig) GetStdWriter() io.WriteCloser
type TypeRestriction ¶
type TypeRestriction int
const ( DefaultRestriction TypeRestriction = iota All DevOnly ProdOnly )
Click to show internal directories.
Click to hide internal directories.