README.md
[](https://hex.pm/packages/stdin)
[](https://hexdocs.pm/stdin/)
# stdin
`stdin` provides a synchronous iterator for consuming stdin. It supports all the non-browser targets, Erlang, Node, Deno, and Bun.
```sh
gleam add stdin
```
```gleam
import gleam/io
import gleam/iterator
import stdin.{stdin}
pub fn main() {
stdin()
|> iterator.to_list
|> io.debug
}
```
Further documentation can be found at <https://hexdocs.pm/stdin>.
## Development
```sh
gleam run # Run the project
```