Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterExperimentVersion ¶
FilterExperimentVersion omit experiment version.
func GetNPMRegistryURL ¶
GetNPMRegistryURL generate a url of npm registry.
Types ¶
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 (*NpmRepo) ChooseDist ¶
func (*NpmRepo) GetLatestDist ¶
func (*NpmRepo) PrintAvailableVersions ¶
func (npm *NpmRepo) PrintAvailableVersions()
PrintAvailableVersions print each version and omit experiment versions.
type NpmVersions ¶
type NpmVersions struct {
Dist NpmDist `json:"dist"`
}
Click to show internal directories.
Click to hide internal directories.