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

Function stripBOM

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

Source from the content-addressed store, hash-verified

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

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