{"id":19542279,"url":"https://github.com/ruffrey/pnger","last_synced_at":"2025-02-26T05:22:05.751Z","repository":{"id":19784536,"uuid":"23043482","full_name":"ruffrey/pnger","owner":"ruffrey","description":"lossy png compression and optimization for node, with no deps on linux, win, mac","archived":false,"fork":false,"pushed_at":"2016-04-05T02:34:30.000Z","size":1145,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T22:34:10.937Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruffrey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-17T15:27:11.000Z","updated_at":"2016-04-05T02:34:30.000Z","dependencies_parsed_at":"2022-07-08T01:00:25.198Z","dependency_job_id":null,"html_url":"https://github.com/ruffrey/pnger","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruffrey%2Fpnger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruffrey%2Fpnger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruffrey%2Fpnger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruffrey%2Fpnger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruffrey","download_url":"https://codeload.github.com/ruffrey/pnger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240796091,"owners_count":19858950,"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-11T03:13:58.434Z","updated_at":"2025-02-26T05:22:05.703Z","avatar_url":"https://github.com/ruffrey.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pgner\n\n[![NPM version](https://badge.fury.io/js/pnger.svg)](http://badge.fury.io/js/pnger)\n\nPNG compression and optimization for Node.js, from a base64 buffer, on windows, linux, mac.\n\n## Installing\n\n\tnpm install pnger\n\n## Usage\n\n```javascript\nvar pnger = require('pnger');\nvar saveFilePath = __dirname + '/myfile.png';\n\nvar options = {\n\t// required\n\tbuffer: myBase64Utf8PngBuffer,\n\toutput: saveFilePath,\n\n\t// optional\n\tquality: '60-80', // '0-100'\n\tspeed: '5', // between 0 and 10\n\toptimize: '3', // between 1 and 7\n\n\tuid: 0\n};\n\npnger(options, function (err) {\n\tif (err) {\n\t\tconsole.error(err);\n\t}\n\t// your file is saved at saveFilePath\n});\n```\n\n## Options\n\nSee [source jsdoc on settings](https://github.com/ruffrey/pnger/blob/master/index.js).\n\n## nodewebkit support\n\nTested cross platform on nodewebkit.\n\n## Build platform\n\npnger builds on any platform, runs on any platform. So it can be prebuilt on your mac and deployed elsewhere.\n\n\n## License\n\nAll included software is copyrighted and protected by the respective developers.\n\nThis project is licensed under the **MIT license**, copyright (c) Jeff Parrish:\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruffrey%2Fpnger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruffrey%2Fpnger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruffrey%2Fpnger/lists"}