{"id":18938207,"url":"https://github.com/wechat-miniprogram/miniprogram-elder-transform","last_synced_at":"2026-02-26T18:36:27.193Z","repository":{"id":57298040,"uuid":"403513480","full_name":"wechat-miniprogram/miniprogram-elder-transform","owner":"wechat-miniprogram","description":"小程序适老化自动适配工具","archived":false,"fork":false,"pushed_at":"2024-10-24T10:56:18.000Z","size":88,"stargazers_count":44,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-04T10:33:18.640Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wechat-miniprogram.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-09-06T06:40:56.000Z","updated_at":"2025-09-29T03:30:22.000Z","dependencies_parsed_at":"2024-10-24T14:16:06.079Z","dependency_job_id":"f50e2b2f-5d3e-495a-a2ee-29ddf16a059a","html_url":"https://github.com/wechat-miniprogram/miniprogram-elder-transform","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"1441fa57c0cfc56742cf1a0c5ed31ef8f2fd7352"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wechat-miniprogram/miniprogram-elder-transform","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechat-miniprogram%2Fminiprogram-elder-transform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechat-miniprogram%2Fminiprogram-elder-transform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechat-miniprogram%2Fminiprogram-elder-transform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechat-miniprogram%2Fminiprogram-elder-transform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wechat-miniprogram","download_url":"https://codeload.github.com/wechat-miniprogram/miniprogram-elder-transform/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechat-miniprogram%2Fminiprogram-elder-transform/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29867561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T18:27:06.972Z","status":"ssl_error","status_checked_at":"2026-02-26T18:26:57.848Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-08T12:13:42.978Z","updated_at":"2026-02-26T18:36:27.163Z","avatar_url":"https://github.com/wechat-miniprogram.png","language":"TypeScript","readme":"# miniprogram-elder-transform\n\u003e 小程序适老化自动适配工具\n\n## 注意\n本适老化适配工具不能覆盖所有场景，经过本工具转换后仍需要进行测试和手动适配，以符合产品预期\n\n## 使用\n\n```bash\n# 转换当前目录下小程序源码，需要保证 app.json 在目录下\nnpx miniprogram-elder-transform .\n```\n\n## 原理\n\n转换工具会首先自动给页面`wxml`加上 `\u003cpage-meta root-font-size=\"system\"/\u003e`，从而将用户设置的字体大小作用到小程序的 `rem` 大小单位。\n\n之后，转换工具会将`wxss`中的字体大小，行高，图片宽高等样式，转换为根据`rem`缩放的形式：\n\n如转换前`wxss`样式为 `font-size: 14px;`，则转换后为 `font-size: calc(14px + 0.5 * (1rem - 16px));`。\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwechat-miniprogram%2Fminiprogram-elder-transform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwechat-miniprogram%2Fminiprogram-elder-transform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwechat-miniprogram%2Fminiprogram-elder-transform/lists"}