Skip to content
Effect 4.0 is here. One ecosystem. Zero dependencies.

NodeStdio

Node.js Stdio layer for the current process.

The exported layer reuses the shared Node stdio implementation. It satisfies the platform-independent Stdio service by reading command-line arguments from process.argv, consuming input from process.stdin, and writing output streams to process.stdout and process.stderr.

1 exports Added in v4.0.0 Source

Layers

layer

Added in v4.0.0 Source

Provides the Stdio service backed by the current process arguments, stdin, stdout, and stderr streams.

Signature

declare const layer: Layer.Layer<Stdio>