{"_id":"is-cwebp-readable","_rev":"14-193b6c4d0d8117b4bfe481e9b4a78f54","name":"is-cwebp-readable","description":"Check if a Buffer/Uint8Array is available for cwebp image source","dist-tags":{"latest":"3.0.0","next":"3.0.0-1"},"versions":{"1.0.0":{"name":"is-cwebp-readable","version":"1.0.0","description":"Check if a Buffer/Uint8Array is available for cwebp image source","repository":{"type":"git","url":"https://github.com/shinnn/is-cwebp-readable"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"jscs *.js && eslint *.js","test":"node test.js | tap-spec","coverage":"istanbul cover test.js","coveralls":"${npm_package_scripts_coverage} && istanbul-coveralls"},"licenses":[{"type":"MIT","url":"https://github.com/shinnn/is-cwebp-readable/blob/master/LICENSE"}],"files":["index.js"],"keywords":["buffer","uint8array","type","file","detect","image","jpg","jpeg","png","tif","tiff","webp","cwebp"],"dependencies":{"is-jpg":"^1.0.0","is-png":"^1.0.0","is-tif":"^1.0.0","is-webp":"^1.0.0"},"devDependencies":{"eslint":"^0.13.0","istanbul":"^0.3.5","istanbul-coveralls":"^1.0.1","jscs":"^1.10.0","tap-spec":"^2.2.0","tape":"^3.4.0"},"jscsConfig":{"preset":"google","maximumLineLength":98,"requireBlocksOnNewline":true,"validateLineBreaks":"LF"},"gitHead":"4937858a5a1508cf23c916965958bc61c00bfd59","bugs":{"url":"https://github.com/shinnn/is-cwebp-readable/issues"},"homepage":"https://github.com/shinnn/is-cwebp-readable","_id":"is-cwebp-readable@1.0.0","_shasum":"f44218b65ea59ae3131f063bc3dfe6ac8486bbad","_from":".","_npmVersion":"2.3.0","_nodeVersion":"1.0.1","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"shasum":"f44218b65ea59ae3131f063bc3dfe6ac8486bbad","tarball":"https://registry.npmjs.org/is-cwebp-readable/-/is-cwebp-readable-1.0.0.tgz","integrity":"sha512-qP+ODOa6t4j3tniLq5jwhOJgazOW/n8hwlEqqdRbjn1xGj/rSzbkQtv4x7XnF/udhBbLVL+8pHLxkMnKioNUZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDP9jjm/tSDRyHwUtt21E51TO+w5M9hRA8Qr2FDwQ5f1QIhAMoPJAowBYcfbCrgY+Wajb0yVN8seOtkExdu/GATmKtS"}]},"directories":{}},"1.0.1":{"name":"is-cwebp-readable","version":"1.0.1","description":"Check if a Buffer/Uint8Array is available for cwebp image source","repository":{"type":"git","url":"https://github.com/shinnn/is-cwebp-readable"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"bench":"matcha benchmark/runner.js","pretest":"jscs *.js && eslint *.js","test":"node test.js | tap-spec","coverage":"istanbul cover test.js","coveralls":"${npm_package_scripts_coverage} && istanbul-coveralls"},"licenses":[{"type":"MIT","url":"https://github.com/shinnn/is-cwebp-readable/blob/master/LICENSE"}],"files":["index.js"],"keywords":["buffer","uint8array","type","file","detect","image","jpg","jpeg","png","tif","tiff","webp","cwebp"],"dependencies":{"file-type":"^2.0.4"},"devDependencies":{"eslint":"^0.13.0","istanbul":"^0.3.5","istanbul-coveralls":"^1.0.1","jscs":"^1.10.0","matcha":"^0.6.0","tap-spec":"^2.2.0","tape":"^3.4.0"},"jscsConfig":{"preset":"google","maximumLineLength":98,"requireBlocksOnNewline":true,"validateLineBreaks":"LF"},"gitHead":"d79e8d6a6d5be41b983df688ed7117ef65b14e69","bugs":{"url":"https://github.com/shinnn/is-cwebp-readable/issues"},"homepage":"https://github.com/shinnn/is-cwebp-readable","_id":"is-cwebp-readable@1.0.1","_shasum":"3b95a5103a9d7baf4251a5706249fd023a05ead5","_from":".","_npmVersion":"2.3.0","_nodeVersion":"1.0.1","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"shasum":"3b95a5103a9d7baf4251a5706249fd023a05ead5","tarball":"https://registry.npmjs.org/is-cwebp-readable/-/is-cwebp-readable-1.0.1.tgz","integrity":"sha512-nXeDUV16GNspnBFaZn/v+p4Sy5JU8sdYy3CJ2/QQ3Nmy26Vsh4HLQEMasK79xXediqL08jK6gZkVYn0Vg2+BAQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDYszXUvbpvFuoZoeIpycA6FjuW8QuP+DuzNizJeuZDpAiEAn8f3PxOc1Gx9cy2z/5EgjBiYzeUNY5j2po0Gw92Xir8="}]},"directories":{}},"1.0.2":{"name":"is-cwebp-readable","version":"1.0.2","description":"Check if a Buffer/Uint8Array is available for cwebp image source","repository":{"type":"git","url":"git+https://github.com/shinnn/is-cwebp-readable.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"bench":"node --harmony_arrow_functions node_modules/.bin/_matcha benchmark/runner.js","pretest":"eslint --config node_modules/@shinnn/eslintrc-node/rc.json index.js benchmark test.js","test":"node --harmony_arrow_functions test.js | tap-spec","coverage":"node --harmony_arrow_functions node_modules/.bin/istanbul cover test.js","coveralls":"${npm_package_scripts_coverage} && istanbul-coveralls"},"license":"Unlicense","files":["index.js"],"keywords":["buffer","uint8array","type","file","detect","image","jpg","jpeg","png","tif","tiff","webp","cwebp"],"dependencies":{"file-type":"^2.6.0"},"devDependencies":{"@shinnn/eslintrc-node":"^1.0.2","eslint":"^0.21.2","istanbul":"^0.3.14","istanbul-coveralls":"^1.0.2","matcha":"^0.6.0","tap-spec":"^3.0.0","tape":"^4.0.0"},"gitHead":"7c6c892163a16747c451d2ffd57f17424f926cf6","bugs":{"url":"https://github.com/shinnn/is-cwebp-readable/issues"},"homepage":"https://github.com/shinnn/is-cwebp-readable#readme","_id":"is-cwebp-readable@1.0.2","_shasum":"66d62eebe94bad14282ccd2e20e4f83775ecd711","_from":".","_npmVersion":"2.10.1","_nodeVersion":"2.1.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"shasum":"66d62eebe94bad14282ccd2e20e4f83775ecd711","tarball":"https://registry.npmjs.org/is-cwebp-readable/-/is-cwebp-readable-1.0.2.tgz","integrity":"sha512-/1Vp7piXBF9KsIw/XWN9lSlJkCaNkQpQiBYjI5MdrUi6SdRSljyQXoSQsjacuHT36EvqVujM8qr2GMn+RUsaAQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0XXdBWx0LPin4zj5GTYsG4Zhq/2bkxj7QOw/KLcCJEwIhAJJj1EfMvibfrq7fq38Rv/I6UHaajmceeBp6Y5WFl8hh"}]},"directories":{}},"1.0.3":{"name":"is-cwebp-readable","version":"1.0.3","description":"Check if a Buffer/Uint8Array is available for cwebp image source","repository":{"type":"git","url":"git+https://github.com/shinnn/is-cwebp-readable.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"bench":"node --strong_mode --harmony_array_includes --throw-deprecation --track-heap-objects node_modules/.bin/_matcha benchmark/runner.js","pretest":"eslint --config @shinnn/node-legacy index.js benchmark test.js","test":"node --strong_mode --throw-deprecation --track-heap-objects test.js | tap-spec","coverage":"node --strong_mode node_modules/.bin/istanbul cover test.js","coveralls":"${npm_package_scripts_coverage} && istanbul-coveralls"},"license":"Unlicense","files":["index.js"],"keywords":["buffer","uint8array","type","file","detect","image","jpg","jpeg","png","tif","tiff","webp","cwebp"],"dependencies":{"file-type":"^3.1.0"},"devDependencies":{"@shinnn/eslint-config-node-legacy":"^1.0.0","eslint":"^1.8.0","istanbul":"^0.4.0","matcha":"^0.6.0","tap-spec":"^4.1.0","tape":"^4.2.2"},"gitHead":"6b2946d0d9e27b2d7b38c38bbbf741d8ca5578db","bugs":{"url":"https://github.com/shinnn/is-cwebp-readable/issues"},"homepage":"https://github.com/shinnn/is-cwebp-readable#readme","_id":"is-cwebp-readable@1.0.3","_shasum":"9a8fde2bed77f3417ae9371258c58e2ec3285118","_from":".","_npmVersion":"3.3.10","_nodeVersion":"5.0.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"shasum":"9a8fde2bed77f3417ae9371258c58e2ec3285118","tarball":"https://registry.npmjs.org/is-cwebp-readable/-/is-cwebp-readable-1.0.3.tgz","integrity":"sha512-GXIL+AUOcY5ijkTBdZkOtlmKUj9RLtAK9pqyICG1RUI1aT5gc1HDLzYyL5jgOkqbCYqRsh2ug7wxW/h+qV1hnw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICmzCHDZfm6v3TAsqdVvrMFOgKviHktp9RWSlm9VB8lQAiAaVVCn9obYmJCGVrku8NLui/52GCXsvY8NF9cNLUmjBw=="}]},"directories":{}},"2.0.0":{"name":"is-cwebp-readable","version":"2.0.0","description":"Check if a Buffer/Uint8Array is available for cwebp image source","repository":{"type":"git","url":"git+https://github.com/shinnn/is-cwebp-readable.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"bench":"_matcha benchmark/runner.js","pretest":"eslint --fix --format=codeframe index.js benchmark test.js","test":"node --throw-deprecation --track-heap-objects test.js | tap-spec","coverage":"istanbul cover test.js"},"license":"Unlicense","files":["index.js"],"keywords":["buffer","uint8array","type","file","detect","image","jpg","jpeg","png","tif","tiff","webp","cwebp"],"dependencies":{"file-type":"^4.2.0"},"devDependencies":{"@shinnn/eslint-config-node":"^3.0.0","eslint":"^3.19.0","istanbul":"^0.4.5","matcha":"^0.7.0","tap-spec":"^4.1.1","tape":"^4.6.3"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"7c4efa206b9089ed73fe749636c133cb44902b68","bugs":{"url":"https://github.com/shinnn/is-cwebp-readable/issues"},"homepage":"https://github.com/shinnn/is-cwebp-readable#readme","_id":"is-cwebp-readable@2.0.0","_shasum":"ea34a35313fafeb0dd21ee5f5cd0832e197b9325","_from":".","_npmVersion":"4.5.0","_nodeVersion":"7.9.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"ea34a35313fafeb0dd21ee5f5cd0832e197b9325","tarball":"https://registry.npmjs.org/is-cwebp-readable/-/is-cwebp-readable-2.0.0.tgz","integrity":"sha512-tSwgXEfKEwLIImA+LP5XdSQNXPLUVp+XXqhQfyiWVZMODD1/jr657whm0TldnnctOHAOHQkEvgex1I/oej8KAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFDh9SuILPxc10T5wctcfnky95coEbHBDLu3Qo2KZBRqAiEA/ff3tqWm3QjNjZOoaizf9mRTJREpg87UCeaYfeIrzco="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-cwebp-readable-2.0.0.tgz_1493710937807_0.7938763783313334"},"directories":{}},"2.0.1":{"name":"is-cwebp-readable","version":"2.0.1","description":"Check if a Buffer/Uint8Array is available for cwebp image source","repository":{"type":"git","url":"git+https://github.com/shinnn/is-cwebp-readable.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"bench":"node -p \"require('chalk').yellow('NOTE: Smaller is better.\\n')\" && node benchmark/array-index-of.js && node benchmark/array-includes.js && node benchmark/keys.js && node benchmark/logical-or.js && node benchmark/regexp-test.js && node benchmark/set.js && node -p \"''\"","pretest":"eslint --fix --format=codeframe benchmark index.js test.js","test":"node --throw-deprecation --track-heap-objects test.js | tap-spec","coverage":"istanbul cover test.js"},"license":"CC0-1.0","files":["index.js"],"keywords":["buffer","uint8array","type","file","detect","image","jpg","jpeg","png","tif","tiff","webp","cwebp"],"dependencies":{"file-type":"^4.3.0"},"devDependencies":{"@shinnn/eslint-config-node":"^3.0.0","eslint":"^3.19.0","istanbul":"^0.4.5","tap-spec":"^4.1.1","tape":"^4.6.3"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"e9a5c8bafbd51a1489c18cccf8ac0a781a267088","bugs":{"url":"https://github.com/shinnn/is-cwebp-readable/issues"},"homepage":"https://github.com/shinnn/is-cwebp-readable#readme","_id":"is-cwebp-readable@2.0.1","_shasum":"afb93b0c0abd0a25101016ae33aea8aedf926d26","_from":".","_npmVersion":"4.5.0","_nodeVersion":"7.9.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"afb93b0c0abd0a25101016ae33aea8aedf926d26","tarball":"https://registry.npmjs.org/is-cwebp-readable/-/is-cwebp-readable-2.0.1.tgz","integrity":"sha512-VdCK1HN5F9vURT3GTLBViE/o/eRv2Z08q6bARfp8L6aFemIHMHPSYR9jOZpM2MvOSEYDtZWsiNovsqwsTLk5TA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEyXA2DQfLUO70Yd4WcrJKJckKw9XTttrfhgX2vDmPNNAiBUQRNHeZra+MAVX5YeOMezV2CF+Fn0uf9sARPmJXEpEw=="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/is-cwebp-readable-2.0.1.tgz_1494230065763_0.5021410286426544"},"directories":{}},"3.0.0-0":{"name":"is-cwebp-readable","version":"3.0.0-0","description":"Check if a Buffer/Uint8Array is available for cwebp image source","repository":{"type":"git","url":"git+https://github.com/shinnn/is-cwebp-readable.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"license":"CC0-1.0","scripts":{"bench":"node -p \"require('chalk').yellow('NOTE: Smaller is better.\\n')\" && node benchmark/array-index-of.js && node benchmark/array-includes.js && node benchmark/keys.js && node benchmark/logical-or.js && node benchmark/regexp-test.js && node benchmark/set.js && node -p \"''\"","pretest":"eslint .","test":"nyc node test.js"},"keywords":["buffer","uint8array","type","file","detect","image","jpg","jpeg","png","tif","tiff","webp","cwebp"],"dependencies":{"file-type":"^10.5.0"},"devDependencies":{"@shinnn/eslint-config":"^6.8.1","chalk":"^2.4.1","eslint":"^5.9.0","nyc":"^13.1.0","nyc-config-common":"^1.0.1","tape":"^4.9.1"},"eslintConfig":{"extends":"@shinnn"},"nyc":{"extends":"nyc-config-common"},"readme":"# is-cwebp-readable\n\n[![NPM version](https://img.shields.io/npm/v/is-cwebp-readable.svg)](https://www.npmjs.com/package/is-cwebp-readable)\n[![Build Status](https://travis-ci.org/shinnn/is-cwebp-readable.svg?branch=master)](https://travis-ci.org/shinnn/is-cwebp-readable)\n[![Coverage Status](https://img.shields.io/coveralls/shinnn/is-cwebp-readable.svg)](https://coveralls.io/github/shinnn/is-cwebp-readable)\n\nCheck if a Buffer/Uint8Array is available for [cwebp](https://developers.google.com/speed/webp/docs/cwebp) image source\n\n```javascript\nconst {readFileSync} = require('fs');\nconst isCwebpReadable = require('is-cwebp-readable');\n\nisCwebpReadable(readFileSync('fixture.png')); //=> true\nisCwebpReadable(readFileSync('fixture.bmp')); //=> false\n```\n\n## Installation\n\n[Use npm.](https://docs.npmjs.com/cli/install)\n\n```\nnpm install is-cwebp-readable\n```\n\n## API\n\n```javascript\nconst isCwebpReadable = require('is-cwebp-readable');\n```\n\n### isCwebpReadable(*data*)\n\n*data*: [`Buffer`](https://nodejs.org/api/buffer.html#buffer_class_buffer) or [`Uint8Array`](http://www.ecma-international.org/ecma-262/6.0/#sec-typedarray-objects)  \nReturn: `boolean`\n\nIt returns `true` if the data is [PNG](https://wikipedia.org/wiki/Portable_Network_Graphics), [JPEG](https://wikipedia.org/wiki/JPEG), [TIFF](https://wikipedia.org/wiki/Tagged_Image_File_Format), or [WebP](https://wikipedia.org/wiki/WebP), otherwise `false`.\n\n## License\n\n[Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/deed)\n","readmeFilename":"README.md","gitHead":"714d3afceb328206e028ec083bc730a9efcad8c9","bugs":{"url":"https://github.com/shinnn/is-cwebp-readable/issues"},"homepage":"https://github.com/shinnn/is-cwebp-readable#readme","_id":"is-cwebp-readable@3.0.0-0","_npmVersion":"6.5.0","_nodeVersion":"11.4.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"integrity":"sha512-h7wNUN31LbdoC9cJyt8yx4zdu6Cm912I23GPp9gmQRXsPV0j1Zb6eE6l0pbX8BlEv5AWqYH6FABWaZpvuH60fQ==","shasum":"12e3a1423ec0a623524c6284bcbbdf5814b1e42e","tarball":"https://registry.npmjs.org/is-cwebp-readable/-/is-cwebp-readable-3.0.0-0.tgz","fileCount":3,"unpackedSize":2925,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcF6Z1CRA9TVsSAnZWagAALnoP/A/7nKFTmFooVCex6S5C\n7XYkxZjmpmWpwrGZyXic6cErM/VZDhAd6CqpkiKSp13o3O82apLYE9yND0tY\n37XNgH3FRDNIg4YZbBj8s3WAUEgGnWPFSV6Gayx/6tCQrDspLIf28nyC5y8i\nHp6kgI+8Ct5+AWzQcwQRmVz9JCCJlGPpZorDAO5yqPtiDFZ02QcLaVOjaqhZ\nVDI5JzM2oMENOZv26tMTdx9mflzXrjjIX/Rp4DfTSGyZLI68XRBKJ7RmR5Za\nfgH6xLBwmcThiQBXCF1YuqYphuNiPedIX6aywEBRPrPY9w8/swx7epywz4Zs\niIxQvnW478ZNsa9IYPfxutxubpu/VmO1mNXkVou48apksPEeR7iYV6IWEPMB\nO9/MHfFEHglg3zYW6tCDZ8FvACsMn8otyeN2vp05VVPUy2+Z0QdiTGXF2K4i\nY7TJJ5BhcP9baSAOflPlc/zPaqj8gCDkFZebj+St7sizibLu3k3V/fNARs3F\nicXSc+SNxIazlRz+o5z5DlGk6IoFuKrsbBqmX5TBgYQkUPGVY7ndMFVlC+u7\nan2WihOoXeQcedK3w552ydKL7pdyY4GLT1g38xi4i2V0OnLKyZLUFUne4aii\njE/xtiRm+rFRbi4GiYvkr8SGI8zlcdbEptwO58voGwsUqBBePzvcyQdoMGv2\nYeYg\r\n=7OLj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGQ0wNKwsTKsNwpW+U2Aoaf1cCsVc0XXz+Snr2gJGqndAiBiXhYKR/uop6Z6prh7NlwL8Nzh1FhyPC+11pAtP3H2zA=="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-cwebp-readable_3.0.0-0_1545053812565_0.9340963645021005"},"_hasShrinkwrap":false},"3.0.0-1":{"name":"is-cwebp-readable","version":"3.0.0-1","description":"Check if a Buffer/Uint8Array is available for cwebp image source","repository":{"type":"git","url":"git+https://github.com/shinnn/is-cwebp-readable.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"license":"CC0-1.0","scripts":{"bench":"node -p \"require('chalk').yellow('NOTE: Smaller is better.\\n')\" && node benchmark/array-index-of.js && node benchmark/array-includes.js && node benchmark/keys.js && node benchmark/logical-or.js && node benchmark/regexp-test.js && node benchmark/set.js && node -p \"''\"","pretest":"eslint .","test":"nyc node test.js"},"keywords":["buffer","uint8array","type","file","detect","image","jpg","jpeg","png","tif","tiff","webp","cwebp"],"dependencies":{"file-type":"^10.5.0"},"devDependencies":{"@shinnn/eslint-config":"^6.8.1","chalk":"^2.4.1","eslint":"^5.9.0","nyc":"^13.1.0","nyc-config-common":"^1.0.1","tape":"^4.9.1"},"eslintConfig":{"extends":"@shinnn"},"nyc":{"extends":"nyc-config-common"},"readme":"# is-cwebp-readable\n\n[![NPM version](https://img.shields.io/npm/v/is-cwebp-readable.svg)](https://www.npmjs.com/package/is-cwebp-readable)\n[![Build Status](https://travis-ci.org/shinnn/is-cwebp-readable.svg?branch=master)](https://travis-ci.org/shinnn/is-cwebp-readable)\n[![Coverage Status](https://img.shields.io/coveralls/shinnn/is-cwebp-readable.svg)](https://coveralls.io/github/shinnn/is-cwebp-readable)\n\nCheck if a Buffer/Uint8Array is available for [cwebp](https://developers.google.com/speed/webp/docs/cwebp) image source\n\n```javascript\nconst {readFileSync} = require('fs');\nconst isCwebpReadable = require('is-cwebp-readable');\n\nisCwebpReadable(readFileSync('fixture.png')); //=> true\nisCwebpReadable(readFileSync('fixture.bmp')); //=> false\n```\n\n## Installation\n\n[Use npm.](https://docs.npmjs.com/cli/install)\n\n```\nnpm install is-cwebp-readable\n```\n\n## API\n\n```javascript\nconst isCwebpReadable = require('is-cwebp-readable');\n```\n\n### isCwebpReadable(*data*)\n\n*data*: [`Buffer`](https://nodejs.org/api/buffer.html#buffer_class_buffer) or [`Uint8Array`](http://www.ecma-international.org/ecma-262/6.0/#sec-typedarray-objects)  \nReturn: `boolean`\n\nIt returns `true` if the data is [PNG](https://wikipedia.org/wiki/Portable_Network_Graphics), [JPEG](https://wikipedia.org/wiki/JPEG), [TIFF](https://wikipedia.org/wiki/Tagged_Image_File_Format), or [WebP](https://wikipedia.org/wiki/WebP), otherwise `false`.\n\n## License\n\n[Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/deed)\n","readmeFilename":"README.md","gitHead":"944ff64dd221bbcb054a370932e99573420c2ce3","bugs":{"url":"https://github.com/shinnn/is-cwebp-readable/issues"},"homepage":"https://github.com/shinnn/is-cwebp-readable#readme","_id":"is-cwebp-readable@3.0.0-1","_npmVersion":"6.5.0","_nodeVersion":"11.4.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"integrity":"sha512-7/azTv0tj4X8jK4dcy4bgFKvjCWOrE2G7oXMNkEBv5TK2nn4qqnH1YvAx3GvjfDGlAzKdVh31rB/ZCojKaJ4tA==","shasum":"bd468cf87ee9ee098cace9d980fb5693bca7e995","tarball":"https://registry.npmjs.org/is-cwebp-readable/-/is-cwebp-readable-3.0.0-1.tgz","fileCount":3,"unpackedSize":2923,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcF6guCRA9TVsSAnZWagAA4g4P/RKfHHS+6kg4sFU/ilbK\n/7o3G2Q357HTo5TexJua0recCtojLTcdgOR4LWQLnpWEmoRzHNZyNvO0bHv4\nC4yPLIbv+c//GF7sTT3QFQVBPsI1szL2J3wc2Di4vdtYxCKmmzJAvK91ZxbL\nTcgCZgXSU0mjS7+OpyAwedw9fF+KaucJU8Wle5jLjptygNm6AucgKdcgqEH7\nZYtWnfOmVInC5bdHeDFewJem1mA9uTRWiBOybhDR7NrQZOrDkCExlTYsqqug\ngXex33toPYkojoPC0JkeQK3fsKsFcqAddAFFtT936FR6y9dONxjGTlxP2DhI\ns9uWuHULLU62uOj1X4t4Xv6BprpKNSpx+/D+S82kS4zbCo8wUl+EHBE6UKG1\n5D6ufExmaDc+S+4XRnf2J/zz7QzclT6iZYg01UXBTRzNDKT7u8hgtuTkxiF7\nHbsjyjCUwO2yNZ8leXqaZ9OWosgfZIZnxJsnqiG6EhzgTQvqPay0dLB4iYR8\ny8LQcN6spaoLcrUn8mmxO7X8uXXw5XbRrqEbP4b/ZH5rwN+GPxMl8VPcA8mx\noIgF77b9gfFIYCpGoB6YXFOKMTBVfAt4sVA6EXB+RqdbQ7WCQ1yr3znQcl8H\nuPsw52u8lH182FizO/thpaRrMYaD1HgvWyEgb/86vux/ng6PqzLW1x72iH89\nf0NY\r\n=iNi+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDMvC/mwne2YR3EhitEkHSPdXiVmriU4AH6KZ/hRp9XIAiAz9CgFMtN7s0A3gPacUW06JHu4V0qRUJBB21evYKNtRA=="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-cwebp-readable_3.0.0-1_1545054254231_0.25900542606323484"},"_hasShrinkwrap":false},"3.0.0":{"name":"is-cwebp-readable","version":"3.0.0","description":"Check if a Buffer/Uint8Array is available for cwebp image source","repository":{"type":"git","url":"git+https://github.com/shinnn/is-cwebp-readable.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"license":"ISC","scripts":{"bench":"node -p \"require('chalk').yellow('NOTE: Smaller is better.\\n')\" && node benchmark/array-index-of.js && node benchmark/array-includes.js && node benchmark/keys.js && node benchmark/logical-or.js && node benchmark/regexp-test.js && node benchmark/set.js && node -p \"''\"","pretest":"eslint .","test":"nyc node test.js"},"keywords":["buffer","uint8array","type","file","detect","image","jpg","jpeg","png","tif","tiff","webp","cwebp"],"dependencies":{"file-type":"^10.5.0"},"devDependencies":{"@shinnn/eslint-config":"^6.8.1","chalk":"^2.4.1","eslint":"^5.9.0","nyc":"^13.1.0","nyc-config-common":"^1.0.1","tape":"^4.9.1"},"eslintConfig":{"extends":"@shinnn"},"nyc":{"extends":"nyc-config-common"},"gitHead":"cee3fc84cb39755a4ba6052553247cf0010a565b","bugs":{"url":"https://github.com/shinnn/is-cwebp-readable/issues"},"homepage":"https://github.com/shinnn/is-cwebp-readable#readme","_id":"is-cwebp-readable@3.0.0","_npmVersion":"6.5.0","_nodeVersion":"11.4.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"integrity":"sha512-bpELc7/Q1/U5MWHn4NdHI44R3jxk0h9ew9ljzabiRl70/UIjL/ZAqRMb52F5+eke/VC8yTiv4Ewryo1fPWidvA==","shasum":"0554aaa400977a2fc4de366d8c0244f13cde58cb","tarball":"https://registry.npmjs.org/is-cwebp-readable/-/is-cwebp-readable-3.0.0.tgz","fileCount":4,"unpackedSize":3678,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcF6lECRA9TVsSAnZWagAAz4IP/0f8PvmaNt7AyFwRPT4q\niqU82uNiGuz5/R7hbq9Ll8SGAIueRDq/sWHeh+dtzr4PbJqpJvEUBMNrwSx8\n8256E98F3KWfglu7aNl6Uvg4gVOWbuM+lOBqTcS+kuuEXTlBwJaFwmY9KMX3\nwbo/iTUgEGVBZKnUHj/XnspOzauZeIN+75/4va1nH2s6ki3Qxsr+xFjcDKut\nx8q14CAAgiHv6TQhuZpGrl+g/w5Qm2j5oWunv6djzp3dcx0vE5WPkcIkUaUU\nQGkCiCo0ax9ZIpGrHO7+fJvr7RlFzpXOIhaKhRzrU8jySeaJaecaVuRY1oFM\n0H9C/BWLl/5+9lx2VuWNoIT8bDb3+IZa3HkAai1D9t3aYZ96uqHFDvwZC7/r\naVpxshtgxATA8YspNOXSRrw8u8FeRJAwhKdBgpFyUh/j4NZN6zmMKMDOUGpz\nxZdctCQ/uMhwlGfXVEKlAWzNuIATwa3qs4/w1YmHxhvgbffB+SSP8OqSfd7W\nVXkQFU8T3Ty8PwPlCVGyz4gSBJ/dbwWvXFotvaPO9C0w2lNkRoLAgcBZPeoW\nnRMyvWv9iwUdJNsG5AYCBATEc4tJAmO50Ie/ccdOidBEYXfp2YlC+Lk+8axL\n0F8naKaU0T42SUVDBoTfIioUDFsIFQIs3t9frIsZwpKywRvEyjM3IXM/NuEt\nPE6e\r\n=wgjr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcf9O4aX91WCkea3r25IAgpuU167mfZCOFIOKVT8Aq0gIgGavgfFaue2OgyZcP5twXKMpJZXVknKePBcPchWJvNIo="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-cwebp-readable_3.0.0_1545054531898_0.7690139370678684"},"_hasShrinkwrap":false}},"readme":"# is-cwebp-readable\n\n[![npm version](https://img.shields.io/npm/v/is-cwebp-readable.svg)](https://www.npmjs.com/package/is-cwebp-readable)\n[![Build Status](https://travis-ci.com/shinnn/is-cwebp-readable.svg?branch=master)](https://travis-ci.com/shinnn/is-cwebp-readable)\n[![Coverage Status](https://img.shields.io/coveralls/shinnn/is-cwebp-readable.svg)](https://coveralls.io/github/shinnn/is-cwebp-readable)\n\nCheck if a Buffer/Uint8Array is available for [cwebp](https://developers.google.com/speed/webp/docs/cwebp) image source\n\n```javascript\nconst {readFileSync} = require('fs');\nconst isCwebpReadable = require('is-cwebp-readable');\n\nisCwebpReadable(readFileSync('fixture.png')); //=> true\nisCwebpReadable(readFileSync('fixture.bmp')); //=> false\n```\n\n## Installation\n\n[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/).\n\n```\nnpm install is-cwebp-readable\n```\n\n## API\n\n```javascript\nconst isCwebpReadable = require('is-cwebp-readable');\n```\n\n### isCwebpReadable(*data*)\n\n*data*: [`Buffer`](https://nodejs.org/api/buffer.html#buffer_class_buffer) or [`Uint8Array`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)  \nReturn: `boolean`\n\nIt returns `true` if the data is [PNG](https://wikipedia.org/wiki/Portable_Network_Graphics), [JPEG](https://wikipedia.org/wiki/JPEG), [TIFF](https://wikipedia.org/wiki/Tagged_Image_File_Format), or [WebP](https://wikipedia.org/wiki/WebP), otherwise `false`.\n\n## License\n\n[ISC License](./LICENSE) © 2018 Shinnosuke Watanabe\n","maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"time":{"modified":"2022-06-19T02:39:04.032Z","created":"2015-01-27T18:09:51.970Z","1.0.0":"2015-01-27T18:09:51.970Z","1.0.1":"2015-01-28T22:54:57.107Z","1.0.2":"2015-05-29T12:32:49.857Z","1.0.3":"2015-11-04T17:22:24.209Z","2.0.0":"2017-05-02T07:42:18.040Z","2.0.1":"2017-05-08T07:54:28.324Z","3.0.0-0":"2018-12-17T13:36:52.670Z","3.0.0-1":"2018-12-17T13:44:14.345Z","3.0.0":"2018-12-17T13:48:52.108Z"},"homepage":"https://github.com/shinnn/is-cwebp-readable#readme","keywords":["buffer","uint8array","type","file","detect","image","jpg","jpeg","png","tif","tiff","webp","cwebp"],"repository":{"type":"git","url":"git+https://github.com/shinnn/is-cwebp-readable.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"bugs":{"url":"https://github.com/shinnn/is-cwebp-readable/issues"},"readmeFilename":"README.md","license":"ISC"}