NodeStdio.ts
NodeStdio.ts overview
Section titled “NodeStdio.ts overview”Shared Node.js implementation of the Effect Stdio service.
NodeStdio provides Stdio.Stdio from the current Node process. The
exported layer reads command-line arguments from process.argv,
consumes input from process.stdin, and writes normal and error output to
process.stdout and process.stderr. Standard input remains open, and
standard output and error output are not ended unless requested.
Since v4.0.0
Exports Grouped by Category
Section titled “Exports Grouped by Category”layers
Section titled “layers”Provides Stdio from process.argv, process.stdin, process.stdout,
and process.stderr; stdin remains open and stdout/stderr are not ended by
default.
Signature
declare const layer: Layer.Layer<Stdio.Stdio, never, never>Since v4.0.0