{"_id":"is-webp","_rev":"13-a6d8fb6604c0f83b93f4121f1addf55e","name":"is-webp","description":"Check if a Buffer/Uint8Array is a WebP image","dist-tags":{"latest":"2.0.0"},"versions":{"0.1.0":{"name":"is-webp","version":"0.1.0","description":"Check if a Buffer/Uint8Array is a WebP image","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/is-webp"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js"],"keywords":["webp","google","weppy","network","graphics","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"devDependencies":{"browserify":"^3.0.0","mocha":"*","read-chunk":"^0.1.0"},"bugs":{"url":"https://github.com/sindresorhus/is-webp/issues"},"homepage":"https://github.com/sindresorhus/is-webp","_id":"is-webp@0.1.0","dist":{"shasum":"986166163f66e9fa1d0bc824945aa792540eefd6","tarball":"https://registry.npmjs.org/is-webp/-/is-webp-0.1.0.tgz","integrity":"sha512-SNBrJr1Cr+R8lMi8850uDXfGa8MzzOoDUXaN48HWy2CwgY8Sowm4Bu2GcBMVMKbt6a0oHgMW25hwYNgLu6eI0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA0jbmohJqQPMoN8VZQn8qFTmKQjr8biYK6chZ9k6Kt+AiEArAIEwRUwaM/NG62+pqCKKkQz8hvBD/CzIIDnIMny00k="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"0.1.1":{"name":"is-webp","version":"0.1.1","description":"Check if a Buffer/Uint8Array is a WebP image","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/is-webp"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js"],"keywords":["webp","google","weppy","network","graphics","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"devDependencies":{"browserify":"^3.0.0","mocha":"*","read-chunk":"^0.1.0"},"bugs":{"url":"https://github.com/sindresorhus/is-webp/issues"},"homepage":"https://github.com/sindresorhus/is-webp","_id":"is-webp@0.1.1","dist":{"shasum":"1adb9cdb4a4654fef021237e49dfd8cd882a12fd","tarball":"https://registry.npmjs.org/is-webp/-/is-webp-0.1.1.tgz","integrity":"sha512-1E5KeGS12oZLACmm+uSKTjqlmexoJhe2CdjtqJfZ/8LhE0Tw1E69HPw570PNVtaiqx+HNrcSs736q+kp50EmGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGGxc7q6LGigshxTkO9EJzKp+3udwRtXWYp2RIE9pRUAIgR5eNyNwG2IBJxLD97T3liNgDrOIkGj0BH+e/Yoy4JEM="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"1.0.0":{"name":"is-webp","version":"1.0.0","description":"Check if a Buffer/Uint8Array is a WebP image","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/is-webp"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["webp","google","weppy","network","graphics","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"devDependencies":{"mocha":"*","read-chunk":"^1.0.0"},"gitHead":"df243fb0e45900db43215dbaee10016ec11d1662","bugs":{"url":"https://github.com/sindresorhus/is-webp/issues"},"homepage":"https://github.com/sindresorhus/is-webp","_id":"is-webp@1.0.0","_shasum":"ee9bb224a06a6f0083e3dfb126e880fab4805946","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"ee9bb224a06a6f0083e3dfb126e880fab4805946","tarball":"https://registry.npmjs.org/is-webp/-/is-webp-1.0.0.tgz","integrity":"sha512-8f4EQF68VEDReEy105rhS5NCV3Xa0JcAFwu/TvyfC8hFBLBkYctjRrIJhOfFobDnPDmrh1AE1f2zXQQYJ1hztg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQLUBX7E3wX8GNMDm0Keg095aFRb3JsYZSdCbDl54lqwIgHRBTwq++t5FPkY8BZcU08B9FJpNgiywbp77OwkCTw+k="}]},"directories":{}},"1.0.1":{"name":"is-webp","version":"1.0.1","description":"Check if a Buffer/Uint8Array is a WebP image","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-webp.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["webp","google","weppy","network","graphics","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"devDependencies":{"mocha":"*","read-chunk":"^1.0.0"},"gitHead":"79a955edea7b7763b9e7bea3071996627645491b","bugs":{"url":"https://github.com/sindresorhus/is-webp/issues"},"homepage":"https://github.com/sindresorhus/is-webp#readme","_id":"is-webp@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-yWlD81yjeMLEloQjM5USNA31Slcabi1tZupHAobQkfHTvWwYsZiu0VFTFUqeCbMDTB/Lb14LYjwAClJABZnuMA==","shasum":"2e5165cea41eb795d2348df2c31c1602bfb43896","tarball":"https://registry.npmjs.org/is-webp/-/is-webp-1.0.1.tgz","fileCount":4,"unpackedSize":2990,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC07Kf74f6DF1R49NWxguqRkoCP0v7PIZv16wzxs+NpXAiBS2nuYU6zP1H/Yt7nw01lCuE4I+KTDMYkV/BQMxWabOw=="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-webp_1.0.1_1521736227686_0.7985734666013078"},"_hasShrinkwrap":false},"2.0.0":{"name":"is-webp","version":"2.0.0","description":"Check if a Buffer/Uint8Array is a WebP image","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-webp.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava"},"keywords":["webp","google","weppy","network","graphics","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"devDependencies":{"ava":"^3.15.0","read-chunk":"^4.0.2","xo":"^0.44.0"},"gitHead":"c5b5eff2b315c9100edec30354af06aee5797e41","bugs":{"url":"https://github.com/sindresorhus/is-webp/issues"},"homepage":"https://github.com/sindresorhus/is-webp#readme","_id":"is-webp@2.0.0","_nodeVersion":"16.9.1","_npmVersion":"7.20.3","dist":{"integrity":"sha512-IHKBowSO+VNk82mKN5EOocEd97Q7tFDqupVhHZOsp/mKEB+ZO5BtmVfbXh0cH//QOsF1ldioXSj4E+QHrEY64g==","shasum":"ffedde6d5d3526b1b918507df1f5d408d31f46d8","tarball":"https://registry.npmjs.org/is-webp/-/is-webp-2.0.0.tgz","fileCount":4,"unpackedSize":3058,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2wG2CRA9TVsSAnZWagAAsY0QAISI0zprVUQN0mx6WD08\ntpn1ltFeIQwHHwU9fy4JDvRxi1QaUdLj/sPnuU5v27t3alhpHvh99/c4Xf8O\n7UuIQzLBXudKmHpOehcE4q2lkOvlx8HYNe0utsDbpKzpcY7iDIuBex1NpL/z\nChtWjvKq9BYMvYA/0P6WOY2LyRyvWa0RdNm+XrMG6VcLDr8lLnfmjNZhYAZj\nAMuybWQW9eM0TYTJA8N/af1REf+tWTCtNbYq5lhetII/IU4Sa0W0w6TKEEPb\n7XyqGrKOhx8x9bn4Wa4/9Vkt6WY9drABCyWuD7nD0xgu9/RDV7t3q1qxeYzT\nmfisPyUhKE8GrQbAwioYe3d/RVU2VT4nURENWNsFFyDf+LpFA7M7xjQS4k4v\nUveR9w3DO2/C96Fve9lZ2ph/fnQ3JRw6UmtiEl+ckgmk0u5kYFL/SGTp1vpk\nzjf7ns3s/pPvePZyLLQTq17lvUdQWwAVGNPf2bN0UBXSU3I5sSlJUFo2iZK7\n+1zAPFPBORJ/XoAW4c4VmDWk3NcO6d/xKuKqUwm0Cg3nGPDBHB7CT/XgZuy6\nRL7VNW1PVjx3Mer8s7Mb/1yyO+hg7j8f4N2hPjgbW2Oc2hi4votKQAbrENqS\niQpOODcww0S9AN3GSsQgYOmwW9feQBphQouEuSH3S4HcQfFaNJRVYnEkxAYN\n2l/E\r\n=nM5e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCwBJ+40j3Lb9m8iUPQJ4PHNfczNgJ1cENBeJB78ygYwIhAIjXZyFyKxUDu7s1zpleD+lFuGs+EXPEQ4Hkh4Wi1+Jo"}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-webp_2.0.0_1631989564967_0.8990052293136033"},"_hasShrinkwrap":false}},"readme":"# is-webp\n\n> Check if a Buffer/Uint8Array is a [WebP](https://en.wikipedia.org/wiki/WebP) image\n\n## Install\n\n```sh\nnpm install is-webp\n```\n\n## Usage\n\n##### Node.js\n\n```js\nimport {readChunk} from 'read-chunk';\nimport isWebp from 'is-webp';\n\nconst buffer = await readChunk('unicorn.webp', {length: 12});\n\nisWebp(buffer);\n//=> true\n```\n\n##### Browser\n\n```js\nconst xhr = new XMLHttpRequest();\nxhr.open('GET', 'unicorn.webp');\nxhr.responseType = 'arraybuffer';\n\nxhr.onload = () => {\n\tisWebp(new Uint8Array(this.response));\n\t//=> true\n};\n\nxhr.send();\n```\n\n## API\n\n### isWebp(buffer)\n\nAccepts a `Buffer` (Node.js) or `Uint8Array`.\n\nIt only needs the first 12 bytes.\n\n## Related\n\n- [file-type](https://github.com/sindresorhus/file-type) - Detect the file type of a Buffer/Uint8Array\n- [is-webp-extended](https://github.com/mooyoul/is-webp-extended) - Extended version of this package which supports checking for animated WebP\n","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2022-06-19T02:53:36.428Z","created":"2014-04-21T17:40:20.681Z","0.1.0":"2014-04-21T17:40:20.681Z","0.1.1":"2014-04-29T19:15:01.693Z","1.0.0":"2014-08-14T14:32:31.712Z","1.0.1":"2018-03-22T16:30:27.923Z","2.0.0":"2021-09-18T18:26:05.138Z"},"homepage":"https://github.com/sindresorhus/is-webp#readme","keywords":["webp","google","weppy","network","graphics","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-webp.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/is-webp/issues"},"license":"MIT","readmeFilename":"readme.md","users":{"itonyyo":true}}