Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
18
export
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
bodyTests
Function · 0.90
Calls
1
readRaw
Function · 0.85
Tested by
no test coverage detected