MCPcopy
hub / github.com/eggjs/egg / getJSON

Function getJSON

test/utils.ts:134–136  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

132}
133
134export function getJSON(name: string) {
135 return JSON.parse(readFileSync(getFilepath(name), 'utf-8'));
136}
137
138function formatOptions(name: string | MockOptions, options?: MockOptions) {
139 let baseDir;

Callers

nothing calls this directly

Calls 1

getFilepathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…