{"id":21241801,"url":"https://github.com/emilyselwood/resparse","last_synced_at":"2025-07-10T20:31:13.033Z","repository":{"id":57619989,"uuid":"158215562","full_name":"emilyselwood/resparse","owner":"emilyselwood","description":"Parse screen and image resolutions.","archived":false,"fork":false,"pushed_at":"2018-11-20T20:16:27.000Z","size":9,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T17:11:08.304Z","etag":null,"topics":["golang","golang-library","resolution","screen-size"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emilyselwood.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-19T12:04:07.000Z","updated_at":"2019-04-10T19:46:22.000Z","dependencies_parsed_at":"2022-09-16T19:23:04.379Z","dependency_job_id":null,"html_url":"https://github.com/emilyselwood/resparse","commit_stats":null,"previous_names":["wselwood/resparse"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/emilyselwood/resparse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilyselwood%2Fresparse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilyselwood%2Fresparse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilyselwood%2Fresparse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilyselwood%2Fresparse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emilyselwood","download_url":"https://codeload.github.com/emilyselwood/resparse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilyselwood%2Fresparse/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264652669,"owners_count":23644306,"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":["golang","golang-library","resolution","screen-size"],"created_at":"2024-11-21T00:57:00.644Z","updated_at":"2025-07-10T20:31:12.736Z","avatar_url":"https://github.com/emilyselwood.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ResParse\r\n\r\nSimple library to parse screen resolutions or image sizes.\r\n\r\nCopes with resolutions like \"800x600\" and things \"UHD\" or \"1080p\"\r\n\r\n## Example\r\n\r\n```go\r\nimport \"github.com/wselwood/resparse\"\r\n\r\nx, y, err := resparse.ParseResolution(\"HD\")\r\nif err != nil {\r\n    log.Fatal(err)\r\n}\r\nfmt.Println(\"x:\", x, \"y:\", y)\r\n```\r\n\r\n## Contibuting\r\n\r\nI would love to have more screen size names included in this. If you need something please raise an issue so we know what to add.\r\n\r\nIf you want to have a go at adding some your self you are more than welcome. At the bottom of [resolution.go] there is a map[string]struct{x,y int} that contains the known mappings.\r\nSend through a pull request with extras. Please try and keep it in alphabetical order. It makes it slightly easier to maintain. The names must be in upper case. Test cases are also warmly welcomed.\r\n\r\nIf you find a bug or don't understand something please raise an issue. If it is not a bug we can still probably improve the docs. \r\n\r\n## Thanks\r\n\r\nMost of the screen sizes in this project were cribbed from wikipedia.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femilyselwood%2Fresparse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femilyselwood%2Fresparse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femilyselwood%2Fresparse/lists"}