{"name":"cwebp-bin","version":"0.1.2","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.0","bin-wrapper":"^0.3.0","chalk":"^0.4.0"},"devDependencies":{"bin-check":"^0.1.0","mocha":"^1.18.2","rimraf":"^2.2.6"},"files":["cli.js","index.js","test"],"keywords":["image","img","jpg","jpeg","png","gif","webp"],"_id":"cwebp-bin@0.1.2","_shasum":"1c7a96c1dcff66c7d136a01e69677b219bb29903","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"1000ch","email":"shogo.sensui@gmail.com"},"maintainers":[{"name":"1000ch","email":"shogo.sensui@gmail.com"}],"dist":{"shasum":"1c7a96c1dcff66c7d136a01e69677b219bb29903","tarball":"http://registry-npm.ywwl.com/cwebp-bin/download/cwebp-bin-0.1.2.tgz","integrity":"sha512-drgsupDukGOJ/zwvU2dF6erLhUKN6NjmlMopuTvAr7NjIVX3xxH7MjJJnKla6B6JwCARuSiB/AVsFpTsxWC4Ag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgJfkPiCNGcJ1vTdpCUHcMrn43U+4FOLVTX7RyS+XBOwIgCb9gf+S1g22I/qNDm86uXDFSI1LoAgDEpcbw+K42e7g="}],"size":76953,"noattachment":false,"key":"/cwebp-bin/-/cwebp-bin-0.1.2.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":1401956337091,"_cnpm_publish_time":1401956337091,"dist-tags":{"latest":"8.0.0"}}