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

Function readJSONFile

packages/cli-v3/src/utilities/fileSystem.ts:50–54  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

48}
49
50export async function readJSONFile(path: string) {
51 const fileContents = await fsModule.readFile(path, "utf8");
52
53 return JSON.parse(fileContents);
54}
55
56export async function safeFeadJSONFile(path: string) {
57 try {

Callers 3

setPackageJsonDepsFunction · 0.90
getPackageJsonFunction · 0.50

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…