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

Function nodeReadFactory

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

Source from the content-addressed store, hash-verified

297
298const makeFile = (() => {
299 const nodeReadFactory = (method: string) =>
300 effectify(
301 NFS.read,
302 handleErrnoException("FileSystem", method),
303 handleBadArgument(method)
304 )
305 const nodeRead = nodeReadFactory("read")
306 const nodeReadAlloc = nodeReadFactory("readAlloc")
307 const nodeStat = effectify(

Callers 1

NodeFileSystem.tsFile · 0.85

Calls 2

handleErrnoExceptionFunction · 0.90
handleBadArgumentFunction · 0.85

Tested by

no test coverage detected