MCPcopy Create free account
hub / github.com/Effect-TS/effect / readJson

Function readJson

packages/effect/typeperf/compare.mjs:88–88  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

86const resolveRef = (ref) => runGit(["rev-parse", "--verify", `${ref}^{commit}`])
87
88const readJson = (path) => JSON.parse(readFileSync(path, "utf8"))
89
90const writeJson = (path, value) => {
91 mkdirSync(dirname(path), { recursive: true })

Callers 1

compare.mjsFile · 0.70

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected