{"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":"http://registry-npm.ywwl.com/is-cwebp-readable/download/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="}],"size":1901,"noattachment":false,"key":"/is-cwebp-readable/-/is-cwebp-readable-3.0.0.tgz"},"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","publish_time":1545054532108,"_cnpm_publish_time":1545054532108,"dist-tags":{"latest":"3.0.0","next":"3.0.0-1"}}