{"id":15941388,"url":"https://github.com/justjavac/deno_domain","last_synced_at":"2025-10-19T03:31:15.087Z","repository":{"id":57675366,"uuid":"286881824","full_name":"justjavac/deno_domain","owner":"justjavac","description":"Get all the top-level domains, including gTLDs such as `.com`, and country-code TLDs such as `.uk`.","archived":false,"fork":false,"pushed_at":"2022-08-12T09:51:32.000Z","size":47,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-09-16T14:38:42.547Z","etag":null,"topics":["deno","deno-mod","deno-module","deno-modules","denomod","domain","domains"],"latest_commit_sha":null,"homepage":"https://deno.land/x/domain","language":"TypeScript","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/justjavac.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}},"created_at":"2020-08-12T01:01:00.000Z","updated_at":"2022-07-29T13:22:48.000Z","dependencies_parsed_at":"2022-09-26T18:11:33.125Z","dependency_job_id":null,"html_url":"https://github.com/justjavac/deno_domain","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":"justjavac/deno_starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_domain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_domain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_domain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_domain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justjavac","download_url":"https://codeload.github.com/justjavac/deno_domain/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219869321,"owners_count":16555564,"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":["deno","deno-mod","deno-module","deno-modules","denomod","domain","domains"],"created_at":"2024-10-07T07:03:35.996Z","updated_at":"2025-10-19T03:31:14.668Z","avatar_url":"https://github.com/justjavac.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deno_domain\n\n[![tag](https://img.shields.io/github/release/justjavac/deno_domain)](https://github.com/justjavac/deno_domain/releases)\n[![Build Status](https://github.com/justjavac/deno_domain/workflows/ci/badge.svg?branch=master)](https://github.com/justjavac/deno_domain/actions)\n[![license](https://img.shields.io/github/license/justjavac/deno_domain)](https://github.com/justjavac/deno_domain/blob/master/LICENSE)\n\nGet all the [top-level domains](https://www.iana.org/domains/root/db), including\ngTLDs such as `.com`, and country-code TLDs such as `.uk`.\n\n## Usage\n\nAll domain code:\n\n```ts\nimport domains from \"https://deno.land/x/domain/domains.ts\";\n\nconsole.log(domains);\n```\n\noutput:\n\n```ts\n[\n  [\".aaa\", \".aaa\", \"generic\", \"American Automobile Association, Inc.\"],\n  [\".aarp\", \".aarp\", \"generic\", \"AARP\"],\n  [\".abarth\", \".abarth\", \"generic\", \"Fiat Chrysler Automobiles N.V.\"],\n  [\".abb\", \".abb\", \"generic\", \"ABB Ltd\"],\n  ...\n  ...\n```\n\nCheck if the domain code is valid:\n\n```ts\nimport { isValid } from \"https://deno.land/x/domain/mod.ts\";\n\nisValid(\".com\"); // true\nisValid(\".cn\"); // true\nisValid(\".zzzzz\"); // false\n```\n\nGet an array with all the domain codes supported:\n\n```ts\nimport { getAlldomainCode } from \"https://deno.land/x/domain/mod.ts\";\n\ngetAlldomainCode(); // [\".aaa\", \".aarp\", \".abarth\", ..., ...]\n```\n\nGet domainInfo:\n\n```ts\nimport { getdomainInfo } from \"https://deno.land/x/domain/mod.ts\";\n\ngetdomainInfo(\".com\");\n// { name: \".com\", xn: \".com\", type: \"generic\", manager: \"VeriSign Global Registry Services\" }\n\ngetdomainInfo(\".中国\");\n// { name: \".中国\", xn: \".xn--fiqs8s\", type: \"country-code\", manager: \"China Internet Network Information Center (CNNIC)\" }\n\ngetdomainInfo(\".zzzz\");\n// null\n```\n\n### License\n\n[deno_domain](https://github.com/justjavac/deno_domain) is released under the\nMIT License. See the bundled [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustjavac%2Fdeno_domain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustjavac%2Fdeno_domain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustjavac%2Fdeno_domain/lists"}