{"id":26399200,"url":"https://github.com/walkr/durex","last_synced_at":"2025-03-17T13:18:57.825Z","repository":{"id":57491971,"uuid":"143295534","full_name":"walkr/durex","owner":"walkr","description":"Parse short time durations to their numerical value in milliseconds. e.g. \"1s\" -\u003e 1000","archived":false,"fork":false,"pushed_at":"2022-01-17T23:18:04.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T06:02:59.577Z","etag":null,"topics":["duration","elixir","millisecond"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/walkr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-02T13:02:38.000Z","updated_at":"2022-01-17T23:18:03.000Z","dependencies_parsed_at":"2022-08-28T13:31:21.825Z","dependency_job_id":null,"html_url":"https://github.com/walkr/durex","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walkr%2Fdurex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walkr%2Fdurex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walkr%2Fdurex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walkr%2Fdurex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/walkr","download_url":"https://codeload.github.com/walkr/durex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244039231,"owners_count":20387835,"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":["duration","elixir","millisecond"],"created_at":"2025-03-17T13:18:57.281Z","updated_at":"2025-03-17T13:18:57.816Z","avatar_url":"https://github.com/walkr.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Durex\n\n[Documentation](https://hexdocs.pm/durex)\n\nA small Elixir library for parsing durations, such as `\"1s\"`, to its numerical millisecond value, e.g. `1_000`.\n\n\n## Installation\n\n```elixir\ndef deps do\n  [\n    {:durex, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\n## Usage\n\n```elixir\n# Success\n{:ok, 1_000} = Durex.ms(\"1s\")\n{:ok, 500} = Durex.ms(\"0.5s\")\n500 = Durex.ms!(\"0.5s\")\n\n# Error\n:error = Durex.ms(\"bla\")\n```\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalkr%2Fdurex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwalkr%2Fdurex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalkr%2Fdurex/lists"}