purl

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package purl converts NPM package details into an NPM PackageURL.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakePackageURL

func MakePackageURL(name string, version string, metadata any) *purl.PackageURL

MakePackageURL returns a package URL for NPM PURLs. Technically they spec requires that package names be lowercase, but that'd make us not be able to disambiguate between some packages in the wild that still use uppercase. See https://github.com/package-url/purl-spec/issues/136

Types

This section is empty.

Jump to

Keyboard shortcuts

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