codebaseHref
A listed codebase's page in the registry, by its author's handle (or DID) and its name, or one of its tabs.
import type { Trusted } from "#codebase/tcmts/cli/attest"; import { at } from "#codebase/tcmts/share"; export const codebaseHref = (w: Trusted, name: string, tab?: string): string => at(`/codebases/@${w.handle ?? w.did}/${encodeURIComponent(name)}${tab ? `?tab=${tab}` : ""}`)