{"_id":"png-to-jpeg","_rev":"5-87304acae847adeae25ae025316732a1","name":"png-to-jpeg","description":"A imagemin-compatible png-to-jpeg converter","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"png-to-jpeg","version":"1.0.0","description":"A imagemin-compatible png-to-jpeg converter","main":"index.js","scripts":{"pretest":"eslint index.js test/*.js","test":"ava"},"engines":{"node":">=4"},"repository":{"type":"git","url":"git+https://github.com/marekventur/png-to-jpeg.git"},"keywords":["png","jpeg","jpg","imagemin","png-to-jpeg","buffer","img","pic"],"author":{"name":"Marek Ventur","email":"marekventur@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/marekventur/png-to-jpeg/issues"},"homepage":"https://github.com/marekventur/png-to-jpeg#readme","devDependencies":{"ava":"^0.14.0","babel-eslint":"^6.0.4","eslint":"^2.9.0","eslint-plugin-babel":"^3.2.0","is-jpg":"^1.0.0"},"dependencies":{"pify":"^2.3.0","jpeg-js":"^0.1.2","png-js":"^0.1.1"},"files":["index.js"],"gitHead":"66948be0868ae60e464e5e7590582a70f76639d9","_id":"png-to-jpeg@1.0.0","_shasum":"cc7721467e2312b64b43e0d130f8d99e50b71586","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"marekventur","email":"marekventur@gmail.com"},"maintainers":[{"name":"marekventur","email":"marekventur@gmail.com"}],"dist":{"shasum":"cc7721467e2312b64b43e0d130f8d99e50b71586","tarball":"https://registry.npmjs.org/png-to-jpeg/-/png-to-jpeg-1.0.0.tgz","integrity":"sha512-unIU1iAJYuvdEn5nHdW3IJXKIpQTM3fxQbkSllw+75F2myKHqraJHfvP/+uTGv7dUuHV0pdxAzx2eFDQGR2T4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9e/QU4g+o4/yQbAvzcoG/X9OJq5KU3piBOoo9JjCBUAIgPqSk9cjkSBM8zYrOdrBP5oAgTnA+F/1ev0tmSXhP9fE="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/png-to-jpeg-1.0.0.tgz_1464092439770_0.17491053906269372"}},"1.0.1":{"name":"png-to-jpeg","version":"1.0.1","description":"A imagemin-compatible png-to-jpeg converter","main":"index.js","scripts":{"pretest":"eslint index.js test/*.js","test":"ava"},"engines":{"node":">=4"},"repository":{"type":"git","url":"git+https://github.com/marekventur/png-to-jpeg.git"},"keywords":["png","jpeg","jpg","imagemin","png-to-jpeg","buffer","img","pic"],"author":{"name":"Marek Ventur","email":"marekventur@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/marekventur/png-to-jpeg/issues"},"homepage":"https://github.com/marekventur/png-to-jpeg#readme","devDependencies":{"ava":"^0.14.0","babel-eslint":"^6.0.4","eslint":"^2.9.0","eslint-plugin-babel":"^3.2.0","is-jpg":"^1.0.0"},"dependencies":{"pify":"^2.3.0","jpeg-js":"^0.1.2","png-js":"^0.1.1"},"files":["index.js"],"gitHead":"780a99d8d7c3978a91550f8c66dba4f16b879315","_id":"png-to-jpeg@1.0.1","_shasum":"14362c6aaaec5ea6b52fa3504f5ecc760b4e7424","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"marekventur","email":"marekventur@gmail.com"},"maintainers":[{"name":"marekventur","email":"marekventur@gmail.com"}],"dist":{"shasum":"14362c6aaaec5ea6b52fa3504f5ecc760b4e7424","tarball":"https://registry.npmjs.org/png-to-jpeg/-/png-to-jpeg-1.0.1.tgz","integrity":"sha512-3M0hMY84ocnH3pKu+i4GYo5x7OaQPhudCKYjCUxiykh9/wQM1GZOmlsRifxzINeZREIsIBjD2tYt1KsAdgnSkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSDQpLZoM5iHL6E9u+xtUXPAh5I/aFUMs3QZP9y9PsewIgIydUrIGSStlu7Ou5euY8TeksKoQRoa1f/8N5MVlYfvI="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/png-to-jpeg-1.0.1.tgz_1464093106317_0.6256981547921896"}}},"readme":"# png-to-jpeg [![Build Status](https://travis-ci.org/marekventur/png-to-jpeg.svg?branch=master)](https://travis-ci.org/marekventur/png-to-jpeg)\n\n> A imagemin-compatible png-to-jpeg converter in pure javascript\n\n\n## Install\n\n```\n$ npm install --save png-to-jpeg\n```\n\n\n## Usage\n\nWith imagemin:\n```js\nconst imagemin = require('imagemin');\nconst pngToJpeg = require('png-to-jpeg');\n\nimagemin(['images/*.png'], 'build/images', {\n    plugins: [\n        pngToJpeg({quality: 90})\n    ]\n}).then((files) => {\n    // Please keep in mind that all files now have the wrong extension\n    // You might want to change them manually\n    console.log('PNGs converted to JPEGs:', files);\n});\n```\n\nOr manually:\n```js\nconst fs = require(\"fs\");\nconst pngToJpeg = require('png-to-jpeg');\n\nlet buffer = fs.readFileSync(\"./some-file.png\");\npngToJpeg({quality: 90})(buffer)\n.then(output => fs.writeFileSync(\"./some-file.jpeg\", output));\n\n```\n\n## API\n\n### pngToJpeg([options])(buffer)\n\n#### options\n\n##### quality\n\nType: `integer`<br>\nDefault: `50`\n\nSet a quality preset. Any integer between 1 - 100 is allowed.\n\n#### buffer\n\nType: `buffer`\n\nBuffer to optimize.\n\n## License\n\nMIT © Marek Ventur <marekventur@gmail.com>","maintainers":[{"name":"marekventur","email":"marekventur@gmail.com"}],"time":{"modified":"2022-06-24T05:17:23.438Z","created":"2016-05-24T12:20:40.886Z","1.0.0":"2016-05-24T12:20:40.886Z","1.0.1":"2016-05-24T12:31:47.503Z"},"homepage":"https://github.com/marekventur/png-to-jpeg#readme","keywords":["png","jpeg","jpg","imagemin","png-to-jpeg","buffer","img","pic"],"repository":{"type":"git","url":"git+https://github.com/marekventur/png-to-jpeg.git"},"author":{"name":"Marek Ventur","email":"marekventur@gmail.com"},"bugs":{"url":"https://github.com/marekventur/png-to-jpeg/issues"},"license":"MIT","readmeFilename":"README.md","users":{"bilaltas":true}}