MCPcopy
hub / github.com/triggerdotdev/trigger.dev / readJSONFile

Function readJSONFile

packages/cli/src/utils/fileSystem.ts:45–49  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

43}
44
45export async function readJSONFile(path: string) {
46 const fileContents = await fsModule.readFile(path, "utf8");
47
48 return JSON.parse(fileContents);
49}
50
51export async function writeJSONFile(path: string, json: any) {
52 await writeFile(path, JSON.stringify(json, null, 2));

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…