{"id":15069833,"url":"https://github.com/tinify/tinify-nodejs","last_synced_at":"2025-05-14T16:11:53.168Z","repository":{"id":34770578,"uuid":"38752878","full_name":"tinify/tinify-nodejs","owner":"tinify","description":"Node.js client for the Tinify API.","archived":false,"fork":false,"pushed_at":"2025-02-20T13:39:29.000Z","size":277,"stargazers_count":432,"open_issues_count":5,"forks_count":45,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-06T08:03:12.979Z","etag":null,"topics":["compression","image-processing","node-js","npm-package","tinyjpg","tinypng"],"latest_commit_sha":null,"homepage":"https://tinypng.com/developers","language":"TypeScript","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/tinify.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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":"2015-07-08T12:33:43.000Z","updated_at":"2025-03-31T12:17:18.000Z","dependencies_parsed_at":"2025-03-16T05:01:36.238Z","dependency_job_id":"611c2412-56a2-4c92-9811-ffbb799fea6d","html_url":"https://github.com/tinify/tinify-nodejs","commit_stats":{"total_commits":82,"total_committers":9,"mean_commits":9.11111111111111,"dds":"0.20731707317073167","last_synced_commit":"95e52888045dd42d67b79f4175cf6ab33f284710"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinify%2Ftinify-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinify%2Ftinify-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinify%2Ftinify-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinify%2Ftinify-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinify","download_url":"https://codeload.github.com/tinify/tinify-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248708445,"owners_count":21149000,"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":["compression","image-processing","node-js","npm-package","tinyjpg","tinypng"],"created_at":"2024-09-25T01:45:01.691Z","updated_at":"2025-04-13T11:38:15.045Z","avatar_url":"https://github.com/tinify.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM Version](https://img.shields.io/npm/v/tinify)](https://www.npmjs.com/package/tinify)\n\n\n\n# Tinify API client for Node.js\n\nNode.js client for the Tinify API, used for [TinyPNG](https://tinypng.com) and [TinyJPG](https://tinyjpg.com). Tinify compresses your images intelligently. Read more at [http://tinify.com](http://tinify.com).\n\n## Documentation\n\n[Go to the documentation for the Node.js client](https://tinypng.com/developers/reference/nodejs).\n\n## Installation\n\nInstall the API client:\n\n```\nnpm install tinify\n```\n\nOr add this to your `package.json`:\n\n```json\n{\n  \"dependencies\": {\n    \"tinify\": \"*\"\n  }\n}\n```\n\n## Usage\n\n```javascript\nconst tinify = require(\"tinify\");\ntinify.key = \"YOUR_API_KEY\";\n\ntinify.fromFile(\"unoptimized.png\").toFile(\"optimized.png\");\n```\n\n## Running tests\n\n```\nnpm install\nnpm test\n```\n\n### Integration tests\n\n```\nnpm install\nTINIFY_KEY=$YOUR_API_KEY npm run integration\n```\n\n\n#### To test with proxy:\n\n    $ docker run --rm -it -v ~/.mitmproxy:/home/mitmproxy/.mitmproxy -p 8080:8080 mitmproxy/mitmproxy mitmproxy  --listen-host 0.0.0.0\n\n    $ TINIFY_PROXY=http://172.17.0.3:8080 npm run integration\n\n## License\n\nThis software is licensed under the MIT License. [View the license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinify%2Ftinify-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinify%2Ftinify-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinify%2Ftinify-nodejs/lists"}