announcer

tcmts.cli.libraries.announcer · #cusd6xqs · term · runs anywhere

Who announced a library: @handle, or their DID when no handle is kept.

import type { LibraryEntry } from "#codebase/tcmts/cli/libraries";

export const announcer = (l: Pick<LibraryEntry, "did" | "handle">): string =>
  l.handle ? `@${l.handle}` : (l.did ?? "")

uses

used by