Documentation ¶
Index ¶
- Variables
- func FromLockfile(path string, devDeps bool) (graph.Deps, error)
- func FromNodeModules(path string, devDeps bool) (graph.Deps, error)
- func PackageFromManifest(devDeps bool, pathElems ...string) (pkg.Package, error)
- type DeepDepIdsSet
- type Dependencies
- type DependencyLockEntry
- type DependencyMap
- type Lockfile
- type Manifest
- type NPM
- type Options
- type Output
- type SystemNPM
Constants ¶
This section is empty.
Variables ¶
View Source
var PossibleLockfileFilenames = []string{"npm-shrinkwrap.json", "package-lock.json"}
Functions ¶
func FromLockfile ¶
FromLockfile generates the dep graph based on the lockfile provided at the supplied path.
func FromNodeModules ¶
FromNodeModules generates the dep graph based on the manifest provided at the supplied path
Types ¶
type DeepDepIdsSet ¶ added in v1.0.11
type Dependencies ¶ added in v1.0.11
type Dependencies map[string]*DependencyLockEntry
type DependencyLockEntry ¶ added in v1.0.11
type DependencyLockEntry struct { Version string Requires map[string]string Dependencies Dependencies }
type Lockfile ¶
type Lockfile struct { Name string Version string Dependencies Dependencies }
func FindAndReadLockfile ¶ added in v1.0.11
FindAndReadLockfile checks the root of the node project at the given path for lockfiles, then returns the parsed contents if one is found.
type Manifest ¶
type Manifest struct { Name string Version string Dependencies map[string]string DevDependencies map[string]string }
func FromManifest ¶
FromManifest creates a manifest from the filepath provided
type NPM ¶
type Options ¶ added in v0.7.7
type Options struct {
AllowNPMErr bool `mapstructure:"allow-npm-err"`
}
Click to show internal directories.
Click to hide internal directories.