MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / stripBOM

Function stripBOM

source code/utils/jsonRead.ts:16–18  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

14const UTF8_BOM = '\uFEFF'
15
16export function stripBOM(content: string): string {
17 return content.startsWith(UTF8_BOM) ? content.slice(1) : content
18}

Callers 7

getConfigFunction · 0.90
parseJSONUncachedFunction · 0.90
safeParseJSONCFunction · 0.90
parseJSONLStringFunction · 0.90
addItemToJSONCArrayFunction · 0.90
loadSettingsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected