{"id":21326230,"url":"https://github.com/masylum/tldextract","last_synced_at":"2025-10-09T18:34:01.186Z","repository":{"id":1679692,"uuid":"2406904","full_name":"masylum/tldextract","owner":"masylum","description":"Extract domain, subdomain and tld from a url","archived":false,"fork":false,"pushed_at":"2021-11-19T14:26:31.000Z","size":130,"stargazers_count":38,"open_issues_count":1,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-07T01:17:56.970Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/masylum.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}},"created_at":"2011-09-17T21:50:42.000Z","updated_at":"2022-04-14T06:50:47.000Z","dependencies_parsed_at":"2022-09-03T11:11:52.643Z","dependency_job_id":null,"html_url":"https://github.com/masylum/tldextract","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/masylum/tldextract","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Ftldextract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Ftldextract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Ftldextract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Ftldextract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masylum","download_url":"https://codeload.github.com/masylum/tldextract/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Ftldextract/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264951610,"owners_count":23687974,"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":[],"created_at":"2024-11-21T21:08:52.092Z","updated_at":"2025-10-09T18:33:56.148Z","avatar_url":"https://github.com/masylum.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tldextract\n\nAccurately separates the gTLD or ccTLD (generic or country code\ntop-level domain) from the registered domain and subdomains of a URL.\n\n## How does it work?\n\n``` javascript\nvar tldextract = require('tldextract');\n\ntldextract('http://forums.news.cnn.com/', function (err, obj) {\n  // obj: {subdomain: 'forums.news', domain: 'cnn', tld: 'com'}\n});\n\ntldextract('http://ye.ye.ye.ye/', function (err, obj) {\n  // obj: {subdomain: 'ye', domain: 'ye', tld: 'ye.ye'}\n});\n```\n\n## tests\n\n``` bash\nmake\n```\n\n## Disclaimer\n\nThis module is a port of the python module [tldextract](https://github.com/john-kurkowski/tldextract).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasylum%2Ftldextract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasylum%2Ftldextract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasylum%2Ftldextract/lists"}