{"id":17166687,"url":"https://github.com/willf/publicsuffix","last_synced_at":"2025-03-24T18:15:38.229Z","repository":{"id":193120968,"uuid":"687055822","full_name":"willf/publicsuffix","owner":"willf","description":"Simple CLI command that prints domain information using the [Public Suffix List](https://publicsuffix.org/).","archived":false,"fork":false,"pushed_at":"2024-01-03T18:31:25.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T12:52:25.799Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/willf.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":"2023-09-04T14:05:02.000Z","updated_at":"2023-09-06T18:29:15.000Z","dependencies_parsed_at":"2024-01-03T19:42:50.380Z","dependency_job_id":null,"html_url":"https://github.com/willf/publicsuffix","commit_stats":null,"previous_names":["willf/publicsuffix"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Fpublicsuffix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Fpublicsuffix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Fpublicsuffix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Fpublicsuffix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willf","download_url":"https://codeload.github.com/willf/publicsuffix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245325221,"owners_count":20596818,"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-10-14T23:06:23.945Z","updated_at":"2025-03-24T18:15:38.210Z","avatar_url":"https://github.com/willf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![status badge](https://github.com/willf/publicsuffix/actions/workflows/go.yml/badge.svg)\n\n#Public Suffix\n\nSimple Go command that prints domain information using the [Public Suffix List](https://publicsuffix.org/).\n\n## Installation\n\nAssuming you have Go installed and your `$GOPATH` set:\n\n1. Clone the repository\n2. Run `go install`\n\n## Usage\n\nStandard input is used to read the domain name. The output is a JSON object with the following fields:\n\n- `input`: The input\n- `tld`: The top level domain\n- `sld`: The second level domain\n- `trd`: The third level domain\n- `base`: The base domain\n- `error`: Any error that occurred\n\nInput can be a full URL or just a domain name. If a URL is provided, the scheme and path are ignored.\n\n```\n$ echo 'www.example.com' | publicsuffix\n{\"input\":\"www.example.com\",\"tld\":\"com\",\"sld\":\"example\",\"trd\":\"www\",\"base\":\"example.com\",\"error\":null}\n\n$ echo 'https://www.example.com' | publicsuffix\n{\"input\":\"www.example.com\",\"tld\":\"com\",\"sld\":\"example\",\"trd\":\"www\",\"base\":\"example.com\",\"error\":null}\n\n\n$ cat domains.txt | publicsuffix \u003e domains.json\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillf%2Fpublicsuffix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillf%2Fpublicsuffix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillf%2Fpublicsuffix/lists"}