{"id":21713890,"url":"https://github.com/cytle/gulp-px2rpx","last_synced_at":"2025-07-01T05:03:38.376Z","repository":{"id":51857825,"uuid":"94872920","full_name":"cytle/gulp-px2rpx","owner":"cytle","description":"微信小程序 px转换为rpx","archived":false,"fork":false,"pushed_at":"2021-05-09T12:15:19.000Z","size":113,"stargazers_count":24,"open_issues_count":8,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-14T23:44:00.779Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cytle.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}},"created_at":"2017-06-20T09:19:28.000Z","updated_at":"2024-02-14T18:16:11.000Z","dependencies_parsed_at":"2022-08-28T21:41:46.178Z","dependency_job_id":null,"html_url":"https://github.com/cytle/gulp-px2rpx","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cytle/gulp-px2rpx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cytle%2Fgulp-px2rpx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cytle%2Fgulp-px2rpx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cytle%2Fgulp-px2rpx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cytle%2Fgulp-px2rpx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cytle","download_url":"https://codeload.github.com/cytle/gulp-px2rpx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cytle%2Fgulp-px2rpx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260221718,"owners_count":22976882,"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-11-26T00:28:27.816Z","updated_at":"2025-07-01T05:03:38.312Z","avatar_url":"https://github.com/cytle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-px2rpx\n\n微信小程序 px转换为rpx\n\n## Installation\n\n```shell\n$ npm install --save-dev gulp-px2rpx\n```\n\n## Usage\n\n```js\nconst gulp = require('gulp');\nconst px2rpx = require('gulp-px2rpx');\n\ngulp.task('default', function () {\n  gulp.src('./css/*.css')\n    .pipe(px2rpx({\n        screenWidth: 750, // 设计稿屏幕, 默认750\n        wxappScreenWidth: 750, // 微信小程序屏幕, 默认750\n        remPrecision: 6 // 小数精度, 默认6\n    }))\n    .pipe(gulp.dest('./wxappCss'))\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcytle%2Fgulp-px2rpx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcytle%2Fgulp-px2rpx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcytle%2Fgulp-px2rpx/lists"}