{"id":13740522,"url":"https://github.com/Olian04/gleam_stdin","last_synced_at":"2025-05-08T20:31:42.994Z","repository":{"id":242503136,"uuid":"809666157","full_name":"Olian04/gleam_stdin","owner":"Olian04","description":"This package provides a synchronous iterator for consuming stdin. It supports all the non-browser targets, Erlang, Node, Deno, and Bun.","archived":false,"fork":false,"pushed_at":"2024-06-11T15:09:15.000Z","size":8,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-14T02:05:05.292Z","etag":null,"topics":["bun","deno","erlang","gleam","gleam-lang","gleam-language","nodejs","stdin","stdio"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/stdin","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Olian04.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-03T08:05:54.000Z","updated_at":"2024-11-06T18:24:09.000Z","dependencies_parsed_at":"2024-06-13T00:25:54.740Z","dependency_job_id":"7b43a975-9b10-47c9-a738-d0403ee6a798","html_url":"https://github.com/Olian04/gleam_stdin","commit_stats":null,"previous_names":["olian04/gleam-stdin"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olian04%2Fgleam_stdin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olian04%2Fgleam_stdin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olian04%2Fgleam_stdin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olian04%2Fgleam_stdin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Olian04","download_url":"https://codeload.github.com/Olian04/gleam_stdin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224765497,"owners_count":17366130,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bun","deno","erlang","gleam","gleam-lang","gleam-language","nodejs","stdin","stdio"],"created_at":"2024-08-03T04:00:49.077Z","updated_at":"2025-05-08T20:31:42.976Z","avatar_url":"https://github.com/Olian04.png","language":"JavaScript","funding_links":[],"categories":["Packages"],"sub_categories":["Command Line"],"readme":"[![Package Version](https://img.shields.io/hexpm/v/stdin)](https://hex.pm/packages/stdin)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/stdin/)\n\n# stdin\n\n`stdin` provides a synchronous iterator for consuming stdin. It supports all the non-browser targets, Erlang, Node, Deno, and Bun.\n\nThe goal of this package is to provide a uniform way of consuming stdin for all supported targets on all supported platforms.\n\n| Platform     | Tested version | Date         |\n|:------------:|:-------------:|:------------:|\n| Windows 10   | 2.0.0         | `2025-01-02` |\n| macOS 15.2   | 2.0.0         | `2025-01-02` |\n| Ubuntu 24.04 | 2.0.0         | `2025-01-02` |\n| Fedora 40    | 2.0.0         | `2025-01-02` |\n\n```sh\ngleam add stdin\n```\n\n```gleam\nimport gleam/io\nimport gleam/yielder\nimport stdin\n\npub fn main() {\n  stdin.read_lines()\n  |\u003e yielder.to_list\n  |\u003e io.debug\n}\n\n```\n\nFurther documentation can be found at \u003chttps://hexdocs.pm/stdin\u003e.\n\n## Development\n\n```sh\n./run_test.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOlian04%2Fgleam_stdin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOlian04%2Fgleam_stdin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOlian04%2Fgleam_stdin/lists"}