{"id":16987223,"url":"https://github.com/yorickpeterse/code-formatting-in-inko","last_synced_at":"2026-01-31T08:03:47.520Z","repository":{"id":233055163,"uuid":"784987252","full_name":"yorickpeterse/code-formatting-in-inko","owner":"yorickpeterse","description":"An example of a simple code formatter, written in Inko","archived":false,"fork":false,"pushed_at":"2024-06-29T13:40:46.000Z","size":7,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-24T06:40:45.473Z","etag":null,"topics":["code-formatter","code-formatting","fmt","inko"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yorickpeterse.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null}},"created_at":"2024-04-11T00:45:33.000Z","updated_at":"2025-05-31T06:16:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"a4a7a959-bc95-4034-ab7b-05b43f8c054b","html_url":"https://github.com/yorickpeterse/code-formatting-in-inko","commit_stats":null,"previous_names":["yorickpeterse/code-formatting-in-inko"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yorickpeterse/code-formatting-in-inko","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yorickpeterse%2Fcode-formatting-in-inko","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yorickpeterse%2Fcode-formatting-in-inko/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yorickpeterse%2Fcode-formatting-in-inko/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yorickpeterse%2Fcode-formatting-in-inko/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yorickpeterse","download_url":"https://codeload.github.com/yorickpeterse/code-formatting-in-inko/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yorickpeterse%2Fcode-formatting-in-inko/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28934639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T07:49:44.436Z","status":"ssl_error","status_checked_at":"2026-01-31T07:49:34.274Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["code-formatter","code-formatting","fmt","inko"],"created_at":"2024-10-14T02:48:39.071Z","updated_at":"2026-01-31T08:03:47.515Z","avatar_url":"https://github.com/yorickpeterse.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code formatting in Inko\n\nThis repository showcases a basic code formatter written in [Inko](https://inko-lang.org/),\nbased on Inko's own code formatting implementation, which in turn is based on\n[Prettier](https://prettier.io), which in turn is based on the paper\n[\"A prettier printer\"](https://homepages.inf.ed.ac.uk/wadler/papers/prettier/prettier.pdf)\nby Philip Wadler.\n\nThe implementation is well documented, and prior knowledge of Inko shouldn't be\nneeded.\n\n# Requirements\n\n- Inko 0.19.1 or newer\n\n# Usage\n\nUsing Inko 0.19.1 or newer, run the program like so, where `WIDTH` is the\ndesired line width:\n\n```bash\ninko run src/main.inko WIDTH\n```\n\nIf you don't have or don't want to install Inko, you can also use Docker/Podman:\n\n```bash\n# When using Docker:\ndocker run --rm --volume ./src:/src:z ghcr.io/inko-lang/inko:latest inko run /src/main.inko WIDTH\n\n# When using Podman:\npodman run --rm --volume ./src:/src:z ghcr.io/inko-lang/inko:latest inko run /src/main.inko WIDTH\n```\n\nThe output should be something along the lines of the following:\n\n![A screenshot of the expected output](https://github.com/yorickpeterse/code-formatting-in-inko/assets/86065/9225eabf-6052-4ea3-9268-db160383a364)\n\nThe vertical grey line indicates the line limit.\n\n# License\n\nThe code in this repository is licensed under the\n[Unlicense](https://unlicense.org/). A copy of this license can be found in the\nfile \"LICENSE\".\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyorickpeterse%2Fcode-formatting-in-inko","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyorickpeterse%2Fcode-formatting-in-inko","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyorickpeterse%2Fcode-formatting-in-inko/lists"}