MCPcopy Index your code
hub / github.com/npmx-dev/npmx.dev / cleanSymbolName

Function cleanSymbolName

server/utils/docs/text.ts:44–52  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

42 * from esm.sh that we need to remove for clean display.
43 */
44export function cleanSymbolName(name: string): string {
45 if (name.startsWith('default.')) {
46 return name.slice(8)
47 }
48 if (name.startsWith('default_')) {
49 return name.slice(8)
50 }
51 return name
52}
53
54/**
55 * Create a URL-safe HTML anchor ID for a symbol.

Callers 3

buildSymbolLookupFunction · 0.90
mergeOverloadsFunction · 0.90
getNodeSignatureFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected