1/**
2 * Process stdio for Bun applications.
3 *
4 * This module provides the Bun layer for Effect's `Stdio` service by using the
5 * shared Node stdio implementation. Arguments come from `process.argv`, input
6 * is read from `process.stdin`, and output and error output write to
7 * `process.stdout` and `process.stderr`.
8 *
9 * @since 4.0.0
10 */
11import * as NodeStdio from "@effect/platform-node-shared/NodeStdio"
12import type * as Layer from "effect/Layer"
13import type { Stdio } from "effect/Stdio"
14
15/**
16 * Provides the `Stdio` service backed by the current process arguments,
17 * stdin, stdout, and stderr streams.
18 *
19 * @category layers
20 * @since 4.0.0
21 */
22export const layer: Layer.Layer<Stdio> = NodeStdio.layer