{"id":18938214,"url":"https://github.com/wechat-miniprogram/miniprogram-slim","last_synced_at":"2025-08-20T12:30:42.162Z","repository":{"id":42277847,"uuid":"257281177","full_name":"wechat-miniprogram/miniprogram-slim","owner":"wechat-miniprogram","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-11T02:36:25.000Z","size":1483,"stargazers_count":127,"open_issues_count":21,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-10T07:10:57.252Z","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/wechat-miniprogram.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-20T12:57:10.000Z","updated_at":"2024-09-26T00:29:20.000Z","dependencies_parsed_at":"2023-01-26T13:30:27.101Z","dependency_job_id":null,"html_url":"https://github.com/wechat-miniprogram/miniprogram-slim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechat-miniprogram%2Fminiprogram-slim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechat-miniprogram%2Fminiprogram-slim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechat-miniprogram%2Fminiprogram-slim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechat-miniprogram%2Fminiprogram-slim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wechat-miniprogram","download_url":"https://codeload.github.com/wechat-miniprogram/miniprogram-slim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230051144,"owners_count":18165180,"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-08T12:13:44.329Z","updated_at":"2024-12-19T11:11:07.741Z","avatar_url":"https://github.com/wechat-miniprogram.png","language":"JavaScript","readme":"# 小程序瘦身工具\n\n通过剔除无用文件、压缩图片、复用代码等方式减少小程序代码包体积。\n\n## 功能\n\n* [依赖分析，查找无用文件](./docs/deps.md)\n* [代码相似度比较](./docs/jscpd.md)\n* [生成雪碧图代码](./docs/sprite.md)\n* [图片压缩](./docs/imagemin.md)\n\n## 安装\n\n```js\nnpm install -g miniprogram-slim\n```\n\n## 使用\n\n```js\nUsage: miniprogram-slim \u003ccommand\u003e\n\nOptions:\n  -v, --version                  output the version number\n  -h, --help                     output usage information\n\nCommands:\n  cpd [options] \u003cdir\u003e            Detect duplications in source code\n  sprite [options] \u003cinput...\u003e    Covert images into css sprites\n  imagemin [options] \u003cinput...\u003e  Minify images seamlessly\n  analyzer [options]             Analyze dependencies of miniprogram, find out unused files\n\nExamples:\n  $ miniprogram-slim analyzer -t\n  $ miniprogram-slim cpd src\n  $ miniprogram-slim imagemin images/**/*.png\n  $ miniprogram-slim sprite -f emoji images/**/*.png\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwechat-miniprogram%2Fminiprogram-slim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwechat-miniprogram%2Fminiprogram-slim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwechat-miniprogram%2Fminiprogram-slim/lists"}