Versions in this module Expand all Collapse all v0 v0.1.0 Feb 13, 2022 Changes in this version + func DownloadTarballAndUnpack(dist Dist, outputDir string) (err error) + type Dependencies []Dependency + func (vs *Dependencies) UnmarshalJSON(b []byte) error + type Dependency struct + Name string + VersionRange string + type Dist struct + ShaSum string + Tarball string + type DistTags struct + Latest string + func (tags *DistTags) UnmarshalJSON(b []byte) error + type NpmPackage struct + DistTags DistTags + Name string + Versions Versions + func FetchPackage(s string) (NpmPackage, error) + type Version struct + Dependencies Dependencies + Dist Dist + Name string + Version string + func FetchPackageVersion(pack, version string) (Version, error) + type Versions []Version + func (vs *Versions) UnmarshalJSON(b []byte) error + func (vs Versions) ByVersion(v string) (ver Version, found bool)