Skip to content

NodeStdio

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.

1 exports Added in v4.0.0 Source

Layers

layer

Added in v4.0.0 Source

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>;