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

Function nodeReadFactory

packages/platform/node-shared/src/NodeFileSystem.ts:219–224  ·  view source on GitHub ↗
(method: string)

Source from the content-addressed store, hash-verified

217
218const makeFile = (() => {
219 const nodeReadFactory = (method: string) =>
220 effectify(
221 NFS.read,
222 handleErrnoException("FileSystem", method),
223 handleBadArgument(method)
224 )
225 const nodeRead = nodeReadFactory("read")
226 const nodeReadAlloc = nodeReadFactory("readAlloc")
227 const nodeStat = effectify(

Callers 1

NodeFileSystem.tsFile · 0.85

Calls 2

handleErrnoExceptionFunction · 0.90
handleBadArgumentFunction · 0.85

Tested by

no test coverage detected