{"id":24770361,"url":"https://github.com/nmsn/tinypng-command-tool","last_synced_at":"2026-05-08T00:42:28.570Z","repository":{"id":134743516,"uuid":"375943421","full_name":"nmsn/tinypng-command-tool","owner":"nmsn","description":"Use tinypng to compress local images","archived":false,"fork":false,"pushed_at":"2022-10-17T05:51:41.000Z","size":31,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-27T17:05:31.926Z","etag":null,"topics":["command-line-tool","javascript","js","nodejs","npm-package","tinypng"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/tinypng-command-tool","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/nmsn.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-11T07:38:13.000Z","updated_at":"2023-04-14T23:45:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c18f6f6-46ce-438c-8784-c38f8b9803a1","html_url":"https://github.com/nmsn/tinypng-command-tool","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/nmsn/tinypng-command-tool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmsn%2Ftinypng-command-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmsn%2Ftinypng-command-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmsn%2Ftinypng-command-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmsn%2Ftinypng-command-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nmsn","download_url":"https://codeload.github.com/nmsn/tinypng-command-tool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmsn%2Ftinypng-command-tool/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260735418,"owners_count":23054674,"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":["command-line-tool","javascript","js","nodejs","npm-package","tinypng"],"created_at":"2025-01-29T03:37:59.205Z","updated_at":"2026-05-08T00:42:23.545Z","avatar_url":"https://github.com/nmsn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tingpny-command-tool\n\n通过 tingpng 压缩图片的命令行工具\n\n![npm](https://img.shields.io/npm/v/tinypng-command-tool?style=flat-square)\n![GitHub package.json dynamic](https://img.shields.io/github/package-json/keywords/nmsn/tinypng-command-tool?style=flat-square)\n![GitHub repo size](https://img.shields.io/github/repo-size/nmsn/tinypng-command-tool?style=flat-square) ![npm](https://img.shields.io/npm/dw/tinypng-command-tool?style=flat-square)\n![NPM](https://img.shields.io/npm/l/tinypng-command-tool?style=flat-square)\n\n## 初衷\n\n使用命令行调用网页版 [tinypng](https://tinypng.com/) 的接口，对本地图片文件进行压缩，避免频繁的浏览器端操作，提高效率\n\n\n## 使用方法\n安装：\n```bash\nnpm i tinypng-command-tool -g\n```\n\n然后，在命令行进入到你想要压缩图片的目录，执行：\n```bash\ntpc\n```\n\n## 项目背景\n\nTinypng 网页版的不方便之处\n\n1. 批量上传有文件数量限制\n2. 批量下载后还需手动解压缩\n3. 需要手动替换新老图片\n\n## 目标\n\n1. 一键压缩本地图片文件\n2. 可以递归处理\n3. 直接替换原始文件，减少手动操作\n\n## 安装\n\n```bash\nnpm i tinypng-command-tool -g\n```\n\n## 使用\n\n```bash\ntpc\n```\n\n## 项目负责人\n\nnmsn\n\n## 开源协议\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnmsn%2Ftinypng-command-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnmsn%2Ftinypng-command-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnmsn%2Ftinypng-command-tool/lists"}