Skip to content

NodeStdio.ts

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



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>

Source

Since v4.0.0