MCPcopy Create free account
hub / github.com/Markonis/hndl / readJSON

Function readJSON

src/body.ts:18–21  ·  view source on GitHub ↗
(req: Readable)

Source from the content-addressed store, hash-verified

16}
17
18export async function readJSON<T>(req: Readable) {
19 const raw = await readRaw(req);
20 return JSON.parse(raw.toString("utf-8")) as T;
21}

Callers 1

bodyTestsFunction · 0.90

Calls 1

readRawFunction · 0.85

Tested by

no test coverage detected