{"id":16594522,"url":"https://github.com/stephenlacy/elixir-urn","last_synced_at":"2025-12-11T23:35:13.285Z","repository":{"id":44934631,"uuid":"86015135","full_name":"stephenlacy/elixir-urn","owner":"stephenlacy","description":"Uniform Resource Name (URN) parsing and validation in Elixir","archived":false,"fork":false,"pushed_at":"2022-01-17T17:50:04.000Z","size":19,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-07T01:22:10.940Z","etag":null,"topics":["elixir","parsing","urn"],"latest_commit_sha":null,"homepage":null,"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/stephenlacy.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}},"created_at":"2017-03-24T01:42:17.000Z","updated_at":"2023-10-21T06:33:17.000Z","dependencies_parsed_at":"2022-09-24T22:20:40.092Z","dependency_job_id":null,"html_url":"https://github.com/stephenlacy/elixir-urn","commit_stats":null,"previous_names":["stephenlacy/elixir-urn","stevelacy/elixir-urn"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/stephenlacy/elixir-urn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenlacy%2Felixir-urn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenlacy%2Felixir-urn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenlacy%2Felixir-urn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenlacy%2Felixir-urn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephenlacy","download_url":"https://codeload.github.com/stephenlacy/elixir-urn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenlacy%2Felixir-urn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27672129,"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","status":"online","status_checked_at":"2025-12-11T02:00:11.302Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["elixir","parsing","urn"],"created_at":"2024-10-11T23:46:30.946Z","updated_at":"2025-12-11T23:35:13.266Z","avatar_url":"https://github.com/stephenlacy.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# URN\n\n[![Build Status](https://travis-ci.org/stevelacy/elixir-urn.png?branch=master)](https://travis-ci.org/stevelacy/elixir-urn)\n\n\u003e [hex.pm documentation](https://hexdocs.pm/urn/readme.html)\n\n**Uniform Resource Name (URN) parsing and validation in Elixir**\n\n## Installation\n\nAdd `urn` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [{:urn, \"~\u003e 1.0.0\"}]\nend\n```\n\n## Example\n\n```elixir\ndefmodule Project do\n  alias URN\n  def action() do\n    # Parse input string \"urn:collection:id\" to Map\n    {:ok, urn} = URN.parse(\"urn:collection:id\")\n\n    IO.inspect urn\n    # %URN{fragment: nil, nid: \"collection\", nss: \"id\", query: nil, resolution: nil}\n\n    # Turn back into a string\n    URN.to_string(urn)\n    # urn:collection:id\n  end\n\nend\n\n```\n\nLicense [MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephenlacy%2Felixir-urn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephenlacy%2Felixir-urn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephenlacy%2Felixir-urn/lists"}