MCPcopy Create free account
hub / github.com/massCodeIO/massCode / parseJsonFile

Function parseJsonFile

src/main/import/snippets/snippetsLab.ts:35–42  ·  view source on GitHub ↗
(file: ImportFile)

Source from the content-addressed store, hash-verified

33}
34
35function parseJsonFile(file: ImportFile): unknown | null {
36 try {
37 return JSON.parse(file.content)
38 }
39 catch {
40 return null
41 }
42}
43
44function readString(record: SnippetsLabRecord, key: string): string | null {
45 const value = record[key]

Callers 1

parseSnippetsLabFilesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected