{"id":23817771,"url":"https://github.com/lsongdev/tinypng","last_synced_at":"2026-06-05T16:32:03.607Z","repository":{"id":68774204,"uuid":"199617703","full_name":"lsongdev/tinypng","owner":"lsongdev","description":":panda_face: Tinypng API in Node.js","archived":false,"fork":false,"pushed_at":"2019-08-21T05:49:55.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T22:23:50.052Z","etag":null,"topics":["compressor","png-compression","tinypng"],"latest_commit_sha":null,"homepage":"https://tinypng.com","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/lsongdev.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},"funding":{"github":"song940","patreon":"song940","open_collective":"song940","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://git.io/fjRcB"}},"created_at":"2019-07-30T09:15:45.000Z","updated_at":"2019-11-05T02:28:53.000Z","dependencies_parsed_at":"2023-04-25T18:31:24.223Z","dependency_job_id":null,"html_url":"https://github.com/lsongdev/tinypng","commit_stats":null,"previous_names":["lsongdev/tinypng","song940/tinypng"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Ftinypng","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Ftinypng/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Ftinypng/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Ftinypng/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lsongdev","download_url":"https://codeload.github.com/lsongdev/tinypng/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240093157,"owners_count":19746780,"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":["compressor","png-compression","tinypng"],"created_at":"2025-01-02T05:48:43.547Z","updated_at":"2026-05-06T08:30:18.143Z","avatar_url":"https://github.com/lsongdev.png","language":"JavaScript","funding_links":["https://github.com/sponsors/song940","https://patreon.com/song940","https://opencollective.com/song940","https://git.io/fjRcB"],"categories":[],"sub_categories":[],"readme":"## tinypng [![tinypng2](https://img.shields.io/npm/v/tinypng2.svg)](https://npmjs.org/tinypng2)\n\n\u003e 🐼 Tinypng API in Node.js\n\n### Installation\n\n```bash\n$ npm install tinypng2\n```\n\n### Example\n\n```js\nconst tinypng = require('tinypng2')({\n  key: '-- YOUR LICENSE KEY HERE --'\n});\n\n(async () =\u003e {\n\n  const output = await tinypng('/tmp/input.png');\n  console.log(output.url);\n  await output.save('/tmp/output.png');\n  // resize - fit\n  const fit = await output.fit(150, 100);\n  await fit.save('/tmp/output-fit.png');\n  \n})();\n```\n\n### CLI Usage\n\n```bash\n~$ tinypng input.png output.png\n```\n\n### Contributing\n- Fork this Repo first\n- Clone your Repo\n- Install dependencies by `$ npm install`\n- Checkout a feature branch\n- Feel free to add your features\n- Make sure your features are fully tested\n- Publish your local branch, Open a pull request\n- Enjoy hacking \u003c3\n\n### MIT\n\nThis work is licensed under the [MIT license](./LICENSE).\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Ftinypng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flsongdev%2Ftinypng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Ftinypng/lists"}