Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Noumena-Network/code
/ stripBOM
Function
stripBOM
src/utils/jsonRead.ts:14–16 ·
view source on GitHub ↗
(content: string)
Source
from the content-addressed store, hash-verified
12
const
UTF8_BOM =
'\uFEFF'
13
14
export
function
stripBOM(content: string): string {
15
return
content.startsWith(UTF8_BOM) ? content.slice(1) : content
16
}
Callers
7
startGlobalConfigFreshnessWatcher
Function · 0.90
getConfig
Function · 0.90
parseJSONUncached
Function · 0.90
safeParseJSONC
Function · 0.90
parseJSONLString
Function · 0.90
addItemToJSONCArray
Function · 0.90
loadSettings
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected