{"id":15056339,"url":"https://github.com/mystpi/term_size","last_synced_at":"2026-04-02T18:44:35.944Z","repository":{"id":233036288,"uuid":"785875805","full_name":"MystPi/term_size","owner":"MystPi","description":"📏 Retrieve the terminal's size in rows and columns in Gleam.","archived":false,"fork":false,"pushed_at":"2024-04-13T11:58:40.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-14T17:11:39.508Z","etag":null,"topics":["erlang","gleam","javascript","size","terminal"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/term_size","language":"Gleam","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MystPi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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-04-12T20:17:34.000Z","updated_at":"2024-04-12T20:18:47.000Z","dependencies_parsed_at":"2024-04-13T02:57:52.624Z","dependency_job_id":"c3d9d002-02c3-4862-8c70-35ba62b4b3b6","html_url":"https://github.com/MystPi/term_size","commit_stats":null,"previous_names":["mystpi/term_size"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MystPi%2Fterm_size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MystPi%2Fterm_size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MystPi%2Fterm_size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MystPi%2Fterm_size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MystPi","download_url":"https://codeload.github.com/MystPi/term_size/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243532562,"owners_count":20306156,"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":["erlang","gleam","javascript","size","terminal"],"created_at":"2024-09-24T21:50:01.321Z","updated_at":"2025-12-29T15:34:54.725Z","avatar_url":"https://github.com/MystPi.png","language":"Gleam","funding_links":[],"categories":[],"sub_categories":[],"readme":"# term_size\n\nRetrieve the terminal's size in rows and columns.\n\n[![Package Version](https://img.shields.io/hexpm/v/term_size)](https://hex.pm/packages/term_size)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/term_size/)\n\n✨ This package works on all targets!\n\n```sh\ngleam add term_size\n```\n\n```gleam\nimport gleam/io\nimport gleam/string\nimport term_size\n\npub fn main() {\n  let assert Ok(columns) = term_size.columns()\n\n  string.repeat(\"-\", columns)\n  |\u003e io.println\n}\n```\n\nFurther documentation can be found at \u003chttps://hexdocs.pm/term_size\u003e.\n\n## Development\n\n```sh\ngleam run   # Run the project\ngleam test  # Run the tests\ngleam shell # Run an Erlang shell\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmystpi%2Fterm_size","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmystpi%2Fterm_size","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmystpi%2Fterm_size/lists"}