{"name":"cwebp-bin","version":"0.1.4","description":"cwebp node.js wrapper that convert JPG or PNG into WebP","bin":{"cwebp":"cli.js"},"repository":{"type":"git","url":"git://github.com/1000ch/node-cwebp-bin.git"},"scripts":{"test":"mocha --reporter spec --timeout 0","postinstall":"node index.js"},"bugs":{"url":"https://github.com/1000ch/node-cwebp-bin/issues"},"homepage":"https://github.com/1000ch/node-cwebp-bin","author":{"name":"1000ch","email":"shogo.sensui@gmail.com","url":"https://github.com/1000ch"},"engines":{"node":">=0.10.0"},"licenses":[{"type":"BSD"}],"dependencies":{"bin-build":"^0.1.1","bin-wrapper":"^0.3.4","chalk":"^0.5.1"},"devDependencies":{"bin-check":"^0.1.0","mocha":"^1.18.2","rimraf":"^2.2.6"},"files":["cli.js","index.js"],"keywords":["image","img","jpg","jpeg","png","gif","webp"],"_id":"cwebp-bin@0.1.4","_shasum":"b490951420154e305adb0290c214e827961c24ec","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"1000ch","email":"shogo.sensui@gmail.com"},"maintainers":[{"name":"1000ch","email":"shogo.sensui@gmail.com"}],"dist":{"shasum":"b490951420154e305adb0290c214e827961c24ec","tarball":"http://registry-npm.ywwl.com/cwebp-bin/download/cwebp-bin-0.1.4.tgz","integrity":"sha512-Ww3B6hvVa577MRuwH9rxlPM1oSKbo73zKDDLfkUiK0e48fCpSPqTL5gBkTRYN1ayP0rOtNBR9wetZsD54wj2ZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0QjMGhXz9JkfpM5xmj+rrfxmwbjdpV8qlA41zQOtFCAIhAKurQ1Y2TEPa+AUxxLq5j4jQTq62799Jv4ei16lZgZdn"}],"size":3456,"noattachment":false,"key":"/cwebp-bin/-/cwebp-bin-0.1.4.tgz"},"directories":{},"readme":"# cwebp-bin ![GitHub Actions Status](https://github.com/imagemin/cwebp-bin/workflows/test/badge.svg?branch=main)\n\n> [WebP](https://developers.google.com/speed/webp/) is a new image format that provides lossless and lossy compression for images on the web. WebP lossless images are 26% smaller in size compared to PNGs. WebP lossy images are 25-34% smaller in size compared to JPEG images at equivalent SSIM index.\n\nYou probably want [`imagemin-webp`](https://github.com/imagemin/imagemin-webp) instead.\n\n\n## Install\n\n```\n$ npm install cwebp-bin\n```\n\n\n## Usage\n\n```js\nimport {execFile} from 'node:child_process';\nimport cwebp from 'cwebp-bin';\n\nexecFile(cwebp, ['input.png', '-o', 'output.webp'], err => {\n\tif (err) {\n\t\tthrow err;\n\t}\n\n\tconsole.log('Image is converted!');\n});\n```\n\n\n## CLI\n\n```\n$ npm install --global cwebp-bin\n```\n\n```\n$ cwebp --help\n```\n\n\n## License\n\nMIT © [Imagemin](https://github.com/imagemin)\n","publish_time":1405141303977,"_cnpm_publish_time":1405141303977,"dist-tags":{"latest":"8.0.0"}}