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

Function parseJsonFile

src/main/import/snippets/raycast.ts:14–21  ·  view source on GitHub ↗
(file: ImportFile)

Source from the content-addressed store, hash-verified

12type RaycastRecord = Record<string, unknown>
13
14function parseJsonFile(file: ImportFile): unknown | null {
15 try {
16 return JSON.parse(file.content)
17 }
18 catch {
19 return null
20 }
21}
22
23function getSnippetRecords(parsed: unknown): RaycastRecord[] | null {
24 if (Array.isArray(parsed)) {

Callers 1

parseRaycastSnippetFilesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected