MCPcopy
hub / github.com/npmx-dev/npmx.dev / createSymbolId

Function createSymbolId

server/utils/docs/text.ts:57–59  ·  view source on GitHub ↗
(kind: string, name: string)

Source from the content-addressed store, hash-verified

55 * Create a URL-safe HTML anchor ID for a symbol.
56 */
57export function createSymbolId(kind: string, name: string): string {
58 return `${kind}-${name}`.replace(/[^a-z0-9-]/gi, '_')
59}
60
61/**
62 * Parse JSDoc {@link} tags into HTML links.

Callers 3

renderMergedSymbolFunction · 0.90
renderTocFunction · 0.90
buildSymbolLookupFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected