{"id":19210350,"url":"https://github.com/seniverse/ucumex","last_synced_at":"2026-05-14T08:42:43.592Z","repository":{"id":78454349,"uuid":"230097847","full_name":"seniverse/ucumex","owner":"seniverse","description":null,"archived":false,"fork":false,"pushed_at":"2020-07-02T06:50:48.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-01-04T16:42:33.886Z","etag":null,"topics":["convert","elixir","unit"],"latest_commit_sha":null,"homepage":null,"language":"Erlang","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/seniverse.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":"2019-12-25T12:09:43.000Z","updated_at":"2020-07-02T06:50:51.000Z","dependencies_parsed_at":"2023-03-13T20:13:36.181Z","dependency_job_id":null,"html_url":"https://github.com/seniverse/ucumex","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seniverse%2Fucumex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seniverse%2Fucumex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seniverse%2Fucumex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seniverse%2Fucumex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seniverse","download_url":"https://codeload.github.com/seniverse/ucumex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240282897,"owners_count":19776788,"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":["convert","elixir","unit"],"created_at":"2024-11-09T13:35:48.378Z","updated_at":"2025-11-14T08:01:44.233Z","avatar_url":"https://github.com/seniverse.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ucumex\n\nA elixir lib according to [THE UNIFIED CODE FOR UNITS OF MEASURE](http://unitsofmeasure.org/ucum.html) to convert unit.\n\n## Note!\n\n- **Comment is not Supported**\n- **Special Units are not Supported Except Fahrenheit Degree and Celsius Degree**\n\n## Examples\n\n```elixir\n{:ok, op} = Ucumex.convertor(\"km\", \"m\")\n\nop.(3) # -\u003e 3.0e3\n```\n\n```elixir\n# \"[degRe]\" is special unit\nUcumex.convertor(\"km\", \"[degRe]\")\n\n** (NotImplementedError) handler is not implemented for this special unit.\n    (ucumex) lib/ucumex.ex:390: Ucumex.to_basic_units/1\n    (ucumex) lib/ucumex.ex:48: Ucumex.to_bin_op/2\n    (ucumex) lib/ucumex.ex:24: Ucumex.unit_to_std/1\n    (ucumex) lib/ucumex.ex:17: Ucumex.convertor/2\n```\n\n```elixir\n{:error, :unit_not_match} = Ucumex.convertor(\"km\", \"L\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseniverse%2Fucumex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseniverse%2Fucumex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseniverse%2Fucumex/lists"}