{"id":13526412,"url":"https://github.com/papandreou/node-pngquant","last_synced_at":"2025-05-16T14:07:18.405Z","repository":{"id":5742200,"uuid":"6954564","full_name":"papandreou/node-pngquant","owner":"papandreou","description":"The pngquant utility as a readable/writable stream","archived":false,"fork":false,"pushed_at":"2024-10-23T15:38:24.000Z","size":171,"stargazers_count":83,"open_issues_count":3,"forks_count":23,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-05T10:41:42.320Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/papandreou.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.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":"2012-12-01T13:38:58.000Z","updated_at":"2025-05-02T22:13:40.000Z","dependencies_parsed_at":"2024-11-23T00:45:56.680Z","dependency_job_id":null,"html_url":"https://github.com/papandreou/node-pngquant","commit_stats":{"total_commits":178,"total_committers":12,"mean_commits":"14.833333333333334","dds":0.696629213483146,"last_synced_commit":"c476a31b7d12365b21b54afc104013c5143de731"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/papandreou%2Fnode-pngquant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/papandreou%2Fnode-pngquant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/papandreou%2Fnode-pngquant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/papandreou%2Fnode-pngquant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/papandreou","download_url":"https://codeload.github.com/papandreou/node-pngquant/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254496320,"owners_count":22080691,"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-08-01T06:01:29.327Z","updated_at":"2025-05-16T14:07:18.386Z","avatar_url":"https://github.com/papandreou.png","language":"JavaScript","readme":"# node-pngquant\n\n[![NPM version](https://badge.fury.io/js/pngquant.svg)](http://badge.fury.io/js/pngquant)\n[![Build Status](https://travis-ci.org/papandreou/node-pngquant.svg?branch=master)](https://travis-ci.org/papandreou/node-pngquant)\n[![Coverage Status](https://coveralls.io/repos/papandreou/node-pngquant/badge.svg)](https://coveralls.io/r/papandreou/node-pngquant)\n[![Dependency Status](https://david-dm.org/papandreou/node-pngquant.svg)](https://david-dm.org/papandreou/node-pngquant)\n\nThe pngquant command line utility as a readable/writable stream.\n\nThe constructor optionally takes an array of command line options for\nthe `pngquant` binary (defaults to `[256]`):\n\n```javascript\nimport PngQuant from 'pngquant';\n\nconst myPngQuanter = new PngQuant([192, '--quality', '60-80', '--nofs', '-']);\n\nsourceStream.pipe(myPngQuanter).pipe(destinationStream);\n```\n\nPngQuant as a web service (sends back a png with the number of colors\nquantized to 128):\n\n```javascript\nimport PngQuant from 'pngquant';\nimport http from 'http';\n\nhttp\n  .createServer(function (req, res) {\n    if (req.headers['content-type'] === 'image/png') {\n      res.writeHead(200, { 'Content-Type': 'image/png' });\n      req.pipe(new PngQuant([128])).pipe(res);\n    } else {\n      res.writeHead(400);\n      res.end('Feed me a PNG!');\n    }\n  })\n  .listen(1337);\n```\n\n## Installation\n\nMake sure you have node.js and npm installed, and that the `pngquant` binary is in your PATH, then run:\n\n```\nnpm install pngquant\n```\n\n# Releases\n\nSee the [changelog](CHANGELOG.md).\n\n## License\n\n3-clause BSD license -- see the `LICENSE` file for details.\n","funding_links":[],"categories":["Repository"],"sub_categories":["Image"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpapandreou%2Fnode-pngquant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpapandreou%2Fnode-pngquant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpapandreou%2Fnode-pngquant/lists"}