{"id":15663815,"url":"https://github.com/michalmuskala/format","last_synced_at":"2025-05-06T18:46:22.818Z","repository":{"id":66288419,"uuid":"52033357","full_name":"michalmuskala/format","owner":"michalmuskala","description":"A simple string formatter for Elixir","archived":false,"fork":false,"pushed_at":"2018-12-19T16:03:19.000Z","size":20,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T01:51:12.387Z","etag":null,"topics":["elixir"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/michalmuskala.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":"2016-02-18T19:38:04.000Z","updated_at":"2022-08-17T10:36:21.000Z","dependencies_parsed_at":"2023-05-30T16:31:23.272Z","dependency_job_id":null,"html_url":"https://github.com/michalmuskala/format","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalmuskala%2Fformat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalmuskala%2Fformat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalmuskala%2Fformat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalmuskala%2Fformat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michalmuskala","download_url":"https://codeload.github.com/michalmuskala/format/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252748280,"owners_count":21798301,"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":["elixir"],"created_at":"2024-10-03T13:40:02.097Z","updated_at":"2025-05-06T18:46:22.799Z","avatar_url":"https://github.com/michalmuskala.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Format\n\n---\n\n**WARNING**: This library is of alpha quality. There's a lot of missing features and bugs should be expected.\n\n---\n\nAlternative string formatter for Elixir inspired by Python and Rust.\n\n```elixir\niex\u003e use Format\niex\u003e Format.fmt(~F\"{} {}\", [1, \"foo\"])\n[[[[]] | \"1\"], \" \", \"foo\"]]\niex\u003e Format.string(~F\"{} {}\", [1, \"foo\"])\n\"1 foo\"\niex\u003e Format.puts(~F\"{} {}\", [1, \"foo\"])\n1 foo\n:ok\n\niex\u003e Format.string(~F\"{foo} {bar}\", bar: 1, foo: 3)\n\"3 1\"\niex\u003e Format.string(~F\"{foo:.3f} {foo:.5f}\", foo: 3.2)\n\"3.200 3.20000\"\niex\u003e Format.string(~F\"{0:^10d}|{0:\u003c10x}|{0:\u003e10b}\", [100])\n\"   100    |        64|1100100   \"\n```\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `format` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [{:format, \"~\u003e 0.1.0\"}]\nend\n```\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at [https://hexdocs.pm/format](https://hexdocs.pm/format).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalmuskala%2Fformat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichalmuskala%2Fformat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalmuskala%2Fformat/lists"}