npm

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

func Factory(fs afero.Fs, wd string) repository.Repository

Types

type PackageJSONData added in v0.0.3

type PackageJSONData struct {
	Name     string `json:"name"`
	Version  string `json:"version"`
	License  string `json:"license"`
	Licenses []struct {
		Type string `json:"type"`
	} `json:"licenses"`
}

type PackageLockJSONData added in v0.0.3

type PackageLockJSONData struct {
	Packages map[string]struct {
		Dev bool `json:"dev"`
	} `json:"packages"`
}

type Repository

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

func (Repository) GetPackages

func (r Repository) GetPackages(noDev bool, patterns []string) (repository.Packages, error)

Jump to

Keyboard shortcuts

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