{"id":19943628,"url":"https://github.com/karibash/pixel-units","last_synced_at":"2025-05-03T15:33:05.560Z","repository":{"id":57123977,"uuid":"314830446","full_name":"Karibash/pixel-units","owner":"Karibash","description":"Type-safe and mutually convertible pixel units.","archived":false,"fork":false,"pushed_at":"2024-06-16T15:50:58.000Z","size":148,"stargazers_count":7,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T03:10:06.548Z","etag":null,"topics":["pixel","typescript","units"],"latest_commit_sha":null,"homepage":"","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/Karibash.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"Karibash"}},"created_at":"2020-11-21T14:30:08.000Z","updated_at":"2023-12-21T07:21:18.000Z","dependencies_parsed_at":"2022-08-29T04:20:34.889Z","dependency_job_id":null,"html_url":"https://github.com/Karibash/pixel-units","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Karibash%2Fpixel-units","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Karibash%2Fpixel-units/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Karibash%2Fpixel-units/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Karibash%2Fpixel-units/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Karibash","download_url":"https://codeload.github.com/Karibash/pixel-units/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252211771,"owners_count":21712462,"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":["pixel","typescript","units"],"created_at":"2024-11-13T00:17:28.481Z","updated_at":"2025-05-03T15:33:05.196Z","avatar_url":"https://github.com/Karibash.png","language":"TypeScript","funding_links":["https://github.com/sponsors/Karibash"],"categories":[],"sub_categories":[],"readme":"# pixel-units\n\n[![Github](https://img.shields.io/github/followers/Karibash?label=Follow\u0026logo=github\u0026style=social)](https://github.com/Karibash?tab=followers)\n[![Twitter](https://img.shields.io/twitter/follow/Karibash?label=Follow\u0026style=social)](https://twitter.com/intent/follow?screen_name=Karibash)\n\n## 🔧 Features\n\n### Absolute length units\n\n- [x] px\n- [x] cm\n- [x] mm\n- [x] Q\n- [x] in\n- [x] pc\n- [x] pt\n\n### Relative length units\n\n- [x] rem\n- [x] em\n- [x] vw\n- [x] vh\n- [x] vmin\n- [x] vmax\n\n### Multiplication units\n\n- [x] percent\n- [x] magnification\n\n## 👏 Getting Started\n\nThe basic usage is as follows:\n\n```typescript\nimport { Unit, convertUnits } from '@karibash/pixel-units';\n\nconst pixel: Unit\u003c'px'\u003e = '32px';\nconst rem = convertUnits(pixel, 'rem');\n\nconsole.log(rem);\n// -\u003e 2rem\n```\n\n## 🚀 Installation\n\n```\n$ npm install @karibash/pixel-units\n```\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome.\n\nFeel free to check [issues page](https://github.com/Karibash/pixel-units/issues) if you want to contribute.\n\n## 📝 License\n\nCopyright © 2020 [@Karibash](https://twitter.com/karibash).\n\nThis project is [```MIT```](https://github.com/Karibash/pixel-units/blob/master/LICENSE) licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaribash%2Fpixel-units","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaribash%2Fpixel-units","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaribash%2Fpixel-units/lists"}