npm

package
v0.7.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2018 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lockfile

type Lockfile struct {
	Dependencies map[string]struct {
		Version  string
		Requires map[string]string
	}
}

func FromLockfile

func FromLockfile(filename string) (Lockfile, error)

type Manifest

type Manifest struct {
	Name    string
	Version string

	Dependencies map[string]string
}

func FromManifest

func FromManifest(filename string) (Manifest, error)

func FromNodeModules

func FromNodeModules(dir string) ([]Manifest, error)

type NPM

type NPM struct {
	Cmd      string
	AllowErr bool
}

func (*NPM) Clean

func (n *NPM) Clean(dir string) error

func (*NPM) Install

func (n *NPM) Install(dir string) error

func (*NPM) List

func (n *NPM) List(dir string) (Output, error)

type Output

type Output struct {
	Version      string
	From         string
	Resolved     string
	Dependencies map[string]Output
}

Jump to

Keyboard shortcuts

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