npm

package
v0.0.0-...-bcacd0f Latest Latest
Warning

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

Go to latest
Published: May 31, 2016 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterExperimentVersion

func FilterExperimentVersion(s string) bool

FilterExperimentVersion omit experiment version.

func GetNPMRegistryURL

func GetNPMRegistryURL(pkg string) string

GetNPMRegistryURL generate a url of npm registry.

Types

type NpmDist

type NpmDist struct {
	Tarball string
	Shasum  string
}

type NpmDistTags

type NpmDistTags struct {
	Latest string
}

type NpmRepo

type NpmRepo struct {
	Name     string                 `json:"name"`
	Homepage string                 `json:"homepage"`
	DistTags NpmDistTags            `json:"dist-tags"`
	License  string                 `json:"license"`
	Versions map[string]NpmVersions `json:"versions"`
}

func NPMRegistryInit

func NPMRegistryInit(url string) (*NpmRepo, error)

func (*NpmRepo) ChooseDist

func (npm *NpmRepo) ChooseDist(version string) NpmDist

func (*NpmRepo) GetLatestDist

func (npm *NpmRepo) GetLatestDist() NpmDist

func (*NpmRepo) PrintAvailableVersions

func (npm *NpmRepo) PrintAvailableVersions()

PrintAvailableVersions print each version and omit experiment versions.

type NpmVersions

type NpmVersions struct {
	Dist NpmDist `json:"dist"`
}

Jump to

Keyboard shortcuts

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