npm

package
v0.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cataloger

type Cataloger struct {
	// contains filtered or unexported fields
}

func NewCataloger

func NewCataloger() *Cataloger

func (*Cataloger) Catalog

func (a *Cataloger) Catalog(contents map[file.Reference]string) ([]pkg.Package, error)

func (*Cataloger) Name

func (a *Cataloger) Name() string

func (*Cataloger) SelectFiles

func (a *Cataloger) SelectFiles(resolver scope.FileResolver) []file.Reference

type Dependencies

type Dependencies map[string]Dependency

type Dependency

type Dependency struct {
	Version   string `json:"version"`
	Resolved  string `json:"resolved"`
	Integrity string `json:"integrity"`
	Requires  map[string]string
}

type PackageLock

type PackageLock struct {
	Requires        bool `json:"requires"`
	LockfileVersion int  `json:"lockfileVersion"`
	Dependencies    Dependencies
}

Jump to

Keyboard shortcuts

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