{"name":"is-gif","version":"4.0.1","description":"Check if a Buffer/Uint8Array is a GIF image","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-gif.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":["gif","graphics","image","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"devDependencies":{"ava":"^3.15.0","xo":"^0.44.0"},"gitHead":"6996c439a5a0d882b865a57e295585a01e5233e2","bugs":{"url":"https://github.com/sindresorhus/is-gif/issues"},"homepage":"https://github.com/sindresorhus/is-gif#readme","_id":"is-gif@4.0.1","_nodeVersion":"14.17.5","_npmVersion":"7.20.3","dist":{"integrity":"sha512-Az44B+o+6QLOaXPvKUksE05C97MFl1dHf1qkKaE4kGGCosHdCaI6MtBnlLx67t8RcDrfvBsluGBxUytMxhc5+Q==","shasum":"4a88b1765bef699fe1f3d71b7e1f4aa8be9387cf","tarball":"http://registry-npm.ywwl.com/is-gif/download/is-gif-4.0.1.tgz","fileCount":4,"unpackedSize":2640,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMNvRCRA9TVsSAnZWagAAIEcP/15VSUfMh0Ht21vQEH9k\nk1jYkTf2RJQgMUV8v1O0Lhe+89lIOIiLi/x3S/SpgqNz3v/hlUafY5DoSK31\nTDFKnEuCZpFPO4NhYcxaK36Jy9vKs+EtW0OVJmztKfgtxSMxJ0wt6BFL2wYP\nihFfuFk4C4ewIE5Mw74JY9/7mJ4YLNTrLnlHooXjAefn0iHvOZT+SU7PP3KK\n55P/QOrdYfvXmDN0rH6odFZsMvkG1a6pmd4BXG1MDYhmjmLyKyNAQnhakRmJ\nplDX63qz4+pQBRq4oMRb1Xt/jSrQDKiY0wvjT2sY/mBuiba/6y5VUkX2jgDq\nicf5BBHReDylHDvCrOlmKk2oLEaEWZFdIGGmugINr1Nfa+hN/K1boy229W2C\nc0bLlRDdHxcfxUO1C3TyRPTdGD/wcsRFYU9Bf2d8O9Oj9vIT5GH05prPnF4u\nlxZnR7YGhBcveDrZxuLBU/4ysILhGPLdGw9OWa/8/EU0qmBjMZf0CoOU0t7C\nDoYyAK1dZcM/vqcxr4AavQ7oeKOiqKYrhlFleY6KYHVoxqjg+qpT8AOAomVD\nJ0H2/Qykp6H673JpUw1UGB9Cou5uK7wSlxCpXVRPNfcMURskAx7cg57wMi6O\nPNQ8+6StM6R0gBAii+hKp4kQVzGe59iH/8h4di/EgpaqSfuEFvSPUJPQP6Co\n0tJ1\r\n=uVg1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChQOPoDf7Jp5W3vNz4mskZQfAJTUiq3ev6xXbjrNsqmQIgbo0My01VHJEgCyj4K3/Y3cjzQQEsY84KrlOX04jZ9mk="}],"size":1603,"noattachment":false,"key":"/is-gif/-/is-gif-4.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-gif_4.0.1_1630591953025_0.7889553644585487"},"_hasShrinkwrap":false,"readme":"# is-gif\n\n> Check if a Buffer/Uint8Array is a [GIF](https://en.wikipedia.org/wiki/Graphics_Interchange_Format) image\n\n## Install\n\n```\n$ npm install is-gif\n```\n\n## Usage\n\n```js\nimport {readChunk} from 'read-chunk';\nimport isGif from 'is-gif';\n\nconst buffer = await readChunk('unicorn.gif', {length: 3});\n\nisGif(buffer);\n//=> true\n```\n\n## API\n\n### isGif(input)\n\nReturns a boolean of whether `input` is a GIF image.\n\n#### input\n\nType: `Buffer | Uint8Array`\n\nIt only needs the first 3 bytes.\n\n## Related\n\n- [file-type](https://github.com/sindresorhus/file-type) - Detect the file type of a Buffer/Uint8Array\n","publish_time":1630591953134,"_cnpm_publish_time":1630591953134,"dist-tags":{"latest":"4.0.1"}}