cdn

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package cdn builds URLs for npm package files served via public CDNs. The CDN is a transport, not a source of truth: integrity is anchored to the registry tarball regardless of which CDN URL is recorded.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForgeFileURL

func ForgeFileURL(m Mirror, forge, owner, repo, ref, path string) string

func NPMFileURL

func NPMFileURL(m Mirror, name, version, path string) string

Types

type Mirror

type Mirror string
const (
	JSDelivr Mirror = "jsdelivr"
	Unpkg    Mirror = "unpkg"
)

Jump to

Keyboard shortcuts

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