{"id":31132379,"url":"https://github.com/gocom/resolution","last_synced_at":"2026-01-20T16:43:01.225Z","repository":{"id":304416487,"uuid":"1017222272","full_name":"gocom/resolution","owner":"gocom","description":"Identify pixel resolutions and dimension strings","archived":false,"fork":false,"pushed_at":"2025-07-21T11:40:51.000Z","size":109,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-29T05:57:12.684Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/gocom.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-10T07:57:24.000Z","updated_at":"2025-07-21T11:40:16.000Z","dependencies_parsed_at":"2025-07-22T23:31:37.895Z","dependency_job_id":null,"html_url":"https://github.com/gocom/resolution","commit_stats":null,"previous_names":["gocom/resolution"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/gocom/resolution","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Fresolution","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Fresolution/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Fresolution/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Fresolution/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gocom","download_url":"https://codeload.github.com/gocom/resolution/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Fresolution/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275712389,"owners_count":25514205,"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-09-18T02:00:09.552Z","response_time":77,"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":[],"created_at":"2025-09-18T04:59:50.952Z","updated_at":"2025-09-18T04:59:53.135Z","avatar_url":"https://github.com/gocom.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Resolution\n=====\n\n[![npm](https://img.shields.io/npm/v/%40gocom%2Fresolution)](https://www.npmjs.com/package/@gocom/resolution) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=gocom_resolution\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=gocom_resolution) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=gocom_resolution\u0026metric=coverage)](https://sonarcloud.io/summary/new_code?id=gocom_resolution) ![MIT](https://img.shields.io/badge/license-MIT-green) ![TypeScript](https://img.shields.io/badge/types-TypeScript-blue)\n\nIdentify pixel resolutions, dimension strings and aspect ratios. Offers a library for parsing given pixel resolution\nvalues and returning  resulting aspect ratios, or human-readable short name identifiers. The main use-case for\nthe library would be to convert raw resolution dimensions to 1080p, 4K and 8K, and other identifiers. Written in\nTypeScript, and supports both client-side browser and Node.js backend contexts.\n\n⚡ Install\n-----\n\nUsing npm:\n\n```shell\n$ npm install @gocom/resolution\n```\n\n📖 Documentation\n-----\n\nSee [API Docs](https://github.com/gocom/resolution/blob/docs/master/Public/API.md).\n\n📝 Example Usage\n-----\n\n### Parsing resolution dimensions string\n\nThe following would parse the given `7680x4320` resolution string, and returns the results as an object:\n\n```typescript\nimport {parse} from '@gocom/resolution';\n\nconst resolution = parse('7680x4320');\n\nconsole.log(\n  resolution?.name, // 8K UHD\n  resolution?.group, // 8K\n  resolution?.width, // 7680\n  resolution?.height, // 4320\n  resolution?.aspectRatio, // 16:9\n  resolution?.dimensionRatio, // 1.78\n);\n```\n\nFor more see [API documentation](https://github.com/gocom/resolution/blob/docs/master/Public/API.md).\n\n🛠️ Development\n-----\n\nSee [CONTRIBUTING.md](https://github.com/gocom/resolution/blob/master/CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocom%2Fresolution","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgocom%2Fresolution","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocom%2Fresolution/lists"}