MCPcopy
hub / github.com/codeaashu/claude-code / getTurndownService

Function getTurndownService

src/tools/WebFetchTool/utils.ts:92–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90type TurndownCtor = typeof import('turndown')
91let turndownServicePromise: Promise<InstanceType<TurndownCtor>> | undefined
92function getTurndownService(): Promise<InstanceType<TurndownCtor>> {
93 return (turndownServicePromise ??= import('turndown').then(m => {
94 const Turndown = (m as unknown as { default: TurndownCtor }).default
95 return new Turndown()
96 }))
97}
98
99// PSR requested limiting the length of URLs to 250 to lower the potential
100// for a data exfiltration. However, this is too restrictive for some customers'

Callers 1

getURLMarkdownContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected