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

Function nodeWriteFactory

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

Source from the content-addressed store, hash-verified

242 )
243
244 const nodeWriteFactory = (method: string) =>
245 effectify(
246 NFS.write,
247 handleErrnoException("FileSystem", method),
248 handleBadArgument(method)
249 )
250 const nodeWrite = nodeWriteFactory("write")
251 const nodeWriteAll = nodeWriteFactory("writeAll")
252

Callers 1

NodeFileSystem.tsFile · 0.85

Calls 2

handleErrnoExceptionFunction · 0.90
handleBadArgumentFunction · 0.85

Tested by

no test coverage detected