{"name":"cwebp-bin","version":"0.1.6","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 75000","postinstall":"node lib/install.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":"^1.0.0","bin-wrapper":"^1.0.0","log-symbols":"^1.0.0"},"devDependencies":{"bin-check":"^1.0.0","mocha":"^1.21.4","rimraf":"^2.2.8"},"files":["cli.js","index.js","lib"],"keywords":["image","img","jpg","jpeg","png","webp"],"gitHead":"52d63f47ce327b7befbbb09f56443d7f6dc507a4","_id":"cwebp-bin@0.1.6","_shasum":"3ae15ad68a63cb3f00a9cc43437d7281dfbf1d8b","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"1000ch","email":"shogo.sensui@gmail.com"},"maintainers":[{"name":"1000ch","email":"shogo.sensui@gmail.com"}],"dist":{"shasum":"3ae15ad68a63cb3f00a9cc43437d7281dfbf1d8b","tarball":"http://registry-npm.ywwl.com/cwebp-bin/download/cwebp-bin-0.1.6.tgz","integrity":"sha512-bBsZ3UW3reEj2o3XbZAYJi9e1pLbNvnQTUoCVxVfy1wmZ8vVfmljgMs0xTxyVVufWuDWIzC3EJJdoWaMyTzmyg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfMlARwTXE78080k4VeIdS1uP4t+4uf0wKGpkNtb84xgIgAw0N/T5/Cjw4jQ5QFPAEffilqcOmAZw9dyq0WcdAsi0="}],"size":420393,"noattachment":false,"key":"/cwebp-bin/-/cwebp-bin-0.1.6.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":1409114917166,"_cnpm_publish_time":1409114917166,"dist-tags":{"latest":"8.0.0"}}