{"_id":"@benchesh/grunt-cwebp","_rev":"1-605f38f3c07d9ac1a79e50e87cf37743","name":"@benchesh/grunt-cwebp","dist-tags":{"latest":"2.1.1"},"versions":{"2.1.1":{"name":"@benchesh/grunt-cwebp","version":"2.1.1","description":"Convert JPG and PNG images to WebP with grunt task.","repository":{"type":"git","url":"git+https://github.com/1000ch/grunt-cwebp.git"},"author":{"name":"1000ch"},"engines":{"node":">=4.0.0"},"scripts":{"test":"grunt test"},"bugs":{"url":"https://github.com/1000ch/grunt-cwebp/issues"},"homepage":"https://github.com/1000ch/grunt-cwebp","keywords":["gruntplugin","webp"],"license":"MIT","dependencies":{"async":"^3.0.1","chalk":"^2.4.2","cwebp-bin":"^5.1.0","mkdirp":"^0.5.1"},"devDependencies":{"grunt":"^1.0.4","grunt-cli":"^1.3.2","grunt-contrib-clean":"^2.0.0","grunt-contrib-nodeunit":"^2.0.0"},"gitHead":"ddc25c3c52a951226db252e21e447a060abe1dfc","_id":"@benchesh/grunt-cwebp@2.1.1","_nodeVersion":"10.15.1","_npmVersion":"6.10.2","dist":{"integrity":"sha512-KOD5DFdpfWJQjubSUmd1D8GGzyfxJM954POlyaJeX5TRDZhp8A5XPHqnawBu3wYrPxVSlNEQQBDbBjLb+43aKg==","shasum":"a7bbe547f146b45021d2755551d162548923b801","tarball":"https://registry.npmjs.org/@benchesh/grunt-cwebp/-/grunt-cwebp-2.1.1.tgz","fileCount":9,"unpackedSize":208352,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdeosnCRA9TVsSAnZWagAA/esP/3N07K0o3Kg+lHgkpnVa\nqb4EslxzCYyu2JuJvp2XJgpeVkLVsJN9VYs64N4oXcBZKMHCVf2dqbbdQQxE\n0PvxeMK7F/pO7ka/na3kmoKbAfaIxYS0kwWfKQ2zqeWlMOGLgNc4gsNWFpL7\n9YZLZ1tPwktuxm0TDIDpxWBpiqSvzkoqxmBPQ02d7gT04x7VVZ7DBhL90M4W\ni3HTzReSbRf9KfVBkuOkZt6nB4LKSyCGnNKCxLYyeQW65E10zrVCy4Y0Pphh\nlzM1T/3Rza6HL0ZkG6rBNc5c5y60DnAo6lyc1JXb07s/AbjaS2mNqFmwTgHp\nYUB2awj/hItumBCy3NYyE7WDcC0sLB56ZPGE5sKwoWtSZtBi3Em2r08x8eO+\nYHA9ddUtA+o2NXhNCdL8kYuQs/uNOXDTv7YFZnEROp5TDOYuEWDgzhvgvGkm\nsY6cAkGZRID+J3LjCNkb8BLhZZcucxhEMj+BuCztQKDiZFnN9hXgCqGx8Zdp\nmgzfpCCIBEJF1CmsQdLSZQKY2thMbXVsnuqkolA+3KV82MxEO/NnhpiwT7iq\nMwBozrw+YnJfa+XI+YpPw9RaPABOWXATVufSa/Fr3AYP+WGLJwGWM0VOAdu/\nwkzoHaBKV+NR94zIXaxoGelJeY3h+zo5nd0gNbQl+DiRcMld//usc6ti45XG\nA4wt\r\n=yonU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRviZADl8nUqIaIIgt9gEbe8AMP1X4IO4eJnlJ8vjmUgIgEMhULTcWuSdGatCH+bndN2UFFxsPFBdcc16Eqp3bw8s="}]},"maintainers":[{"name":"benchesh","email":"b.j.cheshire@gmail.com"}],"_npmUser":{"name":"benchesh","email":"b.j.cheshire@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/grunt-cwebp_2.1.1_1568312103080_0.07961284001135538"},"_hasShrinkwrap":false}},"time":{"created":"2019-09-12T18:15:02.810Z","2.1.1":"2019-09-12T18:15:03.259Z","modified":"2022-04-04T18:21:56.876Z"},"maintainers":[{"name":"benchesh","email":"b.j.cheshire@gmail.com"}],"description":"Convert JPG and PNG images to WebP with grunt task.","homepage":"https://github.com/1000ch/grunt-cwebp","keywords":["gruntplugin","webp"],"repository":{"type":"git","url":"git+https://github.com/1000ch/grunt-cwebp.git"},"author":{"name":"1000ch"},"bugs":{"url":"https://github.com/1000ch/grunt-cwebp/issues"},"license":"MIT","readme":"# [grunt-cwebp](https://www.npmjs.org/package/grunt-cwebp)\n\nConvert JPG and PNG images to WebP with grunt task.\n\n[![Build Status](https://travis-ci.org/1000ch/grunt-cwebp.svg?branch=master)](https://travis-ci.org/1000ch/grunt-cwebp)\n[![NPM version](https://badge.fury.io/js/grunt-cwebp.svg)](http://badge.fury.io/js/grunt-cwebp)\n[![Dependency Status](https://david-dm.org/1000ch/grunt-cwebp.svg)](https://david-dm.org/1000ch/grunt-cwebp)\n[![devDependency Status](https://david-dm.org/1000ch/grunt-cwebp/dev-status.svg)](https://david-dm.org/1000ch/grunt-cwebp#info=devDependencies)\n\n## Install\n\nThis plugin requires Grunt `~0.4.1`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```sh\n$ npm install --save-dev grunt-cwebp\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-cwebp');\n```\n\n## Usage\n\nPlease see following `gruntfile.js` example.\n\n```js\nmodule.exports = function (grunt) {\n  grunt.initConfig({\n    cwebp: {\n      static: {\n        files: { \n          'dist/img-png.webp': 'src/img.png',\n          'dist/img-jpg.webp': 'src/img.jpg',\n          'dist/img-gif.webp': 'src/img.gif'\n        }\n      },\n      dynamic: {\n        options: {\n          q: 100,\n          m: 6,\n          lossless: true\n        },\n        files: [{\n          expand: true,\n          cwd: 'src/', \n          src: ['**/*.{png,jpg,gif}'],\n          dest: 'dist/'\n        }]\n      }\n    }\n  });\n\n  grunt.loadNpmTasks('grunt-cwebp');\n};\n```\n\nFiles are processed with [node-cwebp-bin](https://github.com/1000ch/node-cwebp-bin), you can also pass any native lib options, like `q`. Native lib options which normally require no arguments (such as `lossless` or `low_memory`) can be passed in by setting their respective arguments to true.\n\n## Options\n\n### sameExt\n\nType: `Boolean`\nDefault: `false`\n\nSet to `true`, if you want to leave original file extension after converting to webp.\n\n## License\n\nMIT: http://1000ch.mit-license.org\n","readmeFilename":"readme.md"}