{"id":21713892,"url":"https://github.com/cytle/postcss-rpx2rem","last_synced_at":"2025-07-29T11:34:38.263Z","repository":{"id":52514896,"uuid":"140816576","full_name":"cytle/postcss-rpx2rem","owner":"cytle","description":"postcss-rpx2rem","archived":false,"fork":false,"pushed_at":"2023-10-01T19:04:30.000Z","size":85,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-19T01:09:50.324Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/cytle.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2018-07-13T08:01:14.000Z","updated_at":"2021-02-03T07:07:56.000Z","dependencies_parsed_at":"2024-11-26T00:38:36.202Z","dependency_job_id":null,"html_url":"https://github.com/cytle/postcss-rpx2rem","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"5e7951b71dd5df157a7624e662f473828c926f46"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cytle/postcss-rpx2rem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cytle%2Fpostcss-rpx2rem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cytle%2Fpostcss-rpx2rem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cytle%2Fpostcss-rpx2rem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cytle%2Fpostcss-rpx2rem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cytle","download_url":"https://codeload.github.com/cytle/postcss-rpx2rem/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cytle%2Fpostcss-rpx2rem/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267678448,"owners_count":24126333,"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-07-29T02:00:12.549Z","response_time":2574,"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":"2024-11-26T00:28:28.312Z","updated_at":"2025-07-29T11:34:38.247Z","avatar_url":"https://github.com/cytle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostCSS Rpx2rem [![Build Status][ci-img]][ci]\n\n[PostCSS] plugin rpx2rem.\n\n[PostCSS]: https://github.com/postcss/postcss\n[ci-img]:  https://travis-ci.org/cytle/postcss-rpx2rem.svg\n[ci]:      https://travis-ci.org/cytle/postcss-rpx2rem\n\n```css\n/* target */\n.foo {\n    height: 20px;\n    padding: 75rpx 1rem 0 20rpx;\n    content: \"20rpx\";\n}\n```\n\n```css\n/* output */\n.foo {\n    height: 20px;\n    padding: 1rem 1rem 0 0.26667rem;\n    content: \"20rpx\";\n}\n```\n\n## Usage\n\n```js\nconst rpx2rem = require('postcss-rpx2rem');\npostcss([rpx2rem()])\n```\n\n### options\n\nType: `Object | Null`\n\nDefault:\n\n```js\n{\n    targetUnit: 'rpx',\n    outputUnit: 'rem',\n    proportion: 10 / 750, // 10rem / 750rpx; proportion = ouput / target\n    unitPrecision: 5,\n    replace: true,\n    mediaQuery: false\n}\n```\n\n- `targetUnit` (String) The target unit you want to replace\n- `outputUnit` (String) The unit you want to output\n- `proportion` (Number) The proportion you want to convert; proportion = ouput / target\n- `unitPrecision` (Number) The decimal numbers to allow the REM units to grow to.\n- `replace` (Boolean) replaces rules containing rems instead of adding fallbacks.\n- `mediaQuery` (Boolean) Allow px to be converted in media queries.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcytle%2Fpostcss-rpx2rem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcytle%2Fpostcss-rpx2rem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcytle%2Fpostcss-rpx2rem/lists"}