- Notifications
You must be signed in to change notification settings - Fork2
This package provides a synchronous iterator for consuming stdin. It supports all the non-browser targets, Erlang, Node, Deno, and Bun.
NotificationsYou must be signed in to change notification settings
Olian04/gleam_stdin
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
stdin
provides a synchronous iterator for consuming stdin. It supports all the non-browser targets, Erlang, Node, Deno, and Bun.
The goal of this package is to provide a uniform way of consuming stdin for all supported targets on all supported platforms.
Platform | Tested version | Date |
---|---|---|
Windows 10 | 2.0.0 | 2025-01-02 |
macOS 15.2 | 2.0.0 | 2025-01-02 |
Ubuntu 24.04 | 2.0.0 | 2025-01-02 |
Fedora 40 | 2.0.0 | 2025-01-02 |
gleam add stdin
importgleam/ioimportgleam/yielderimportstdinpubfnmain(){stdin.read_lines()|>yielder.to_list|>io.debug}
Further documentation can be found athttps://hexdocs.pm/stdin.
./run_test.sh
About
This package provides a synchronous iterator for consuming stdin. It supports all the non-browser targets, Erlang, Node, Deno, and Bun.