Packages

This package provides a synchronous iterator for consuming stdin. It supports all the non-browser targets, Erlang, Node, Deno, and Bun.

Current section

Files

Jump to
stdin src stdin_test.erl
Raw

src/stdin_test.erl

-module(stdin_test).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([main/0]).
-spec main() -> list(binary()).
main() ->
_pipe = stdin:stdin(),
_pipe@1 = gleam@iterator:to_list(_pipe),
gleam@io:debug(_pipe@1).