{"name":"is-gif","version":"4.0.0","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":"18c2d330479ae732944badd21381b37281d783ac","bugs":{"url":"https://github.com/sindresorhus/is-gif/issues"},"homepage":"https://github.com/sindresorhus/is-gif#readme","_id":"is-gif@4.0.0","_nodeVersion":"14.17.5","_npmVersion":"7.20.3","dist":{"integrity":"sha512-wtUyoTNOb0CySXQ72lwUh5kpASzqj+6gzru9PvJz8BWfs4YJTQx3pXS+Zl5agB35MMi9CpPEu71MlBWUlbaYEQ==","shasum":"bf4e9dbb5367222db06265f82712862f5b90c166","tarball":"http://registry-npm.ywwl.com/is-gif/download/is-gif-4.0.0.tgz","fileCount":4,"unpackedSize":2633,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMA3tCRA9TVsSAnZWagAAT7IP/013YmPUh/M3T2j1nxT4\nvxwgZ1LbdGcm2N0yMCqONhmmdaUustRaC8MFnMJi4EC+Wn9cbILcvDenRj2o\nmdrM5q/hJqNTf+0ezfUsUYHdjM3abXnw+bMg6lrrq908FI7QkPCqpwnqYutw\nEfCmSVWp3DiF+0rUS73+/mdKWoG5IoOhJULFSSYS/b+ALvd5pCk9IcNeynp/\nDrn9bBNOnjV5eWSUIKjWC5A/qNN9z8RjS1y9SxEr3jEufenECEJOfMZuiOAd\nVyMGQ8bz2qIlb+IZno23iGB1FKt1jMhR3KtIv4hRFtdV08rjN77U+pvN28hW\nDcsNH5oCB7BVhQuSlGY7+cvAsnN3BlBnXz2NO8ThhZcFfpRVArdm5DIiysXY\nKRkeCalCRegPDNTr11ltRe965X88DTjStgY1kZ6Boc2/P2JS4CrOoEUnmtIA\nm/NGHqbHgKJxRQSvZTmmVVld69Ul/yJDIBCjqd7X9BF78zJmxMtNz6MzSOcy\n2Pn+US+woHL36l2nm+EzvgWEOU0cVvs4b0EseusXMliNkDDNFA1h+FCZ+lst\n9WSNXxTq0dXftEjJv6HNWgZZFnkYFoNLY8vns2EcqXSsp3/8OKzXn7mOiKHm\nTOsThyI2v2xzQGRfBx8r647Rf+hI3G8OTiLQglqTEy5ildaunemU4HLn+hzi\nDES4\r\n=i4R4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHXYVSauV72PIsLjBN3M1vrCiqqFC9yhubFNl8+OZb/xAiEAseiqr05joMvVpyDGWv3Pebec4F2RH1wPGpZ1u7+e0+Y="}],"size":1596,"noattachment":false,"key":"/is-gif/-/is-gif-4.0.0.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.0_1630539245454_0.39879775762685554"},"_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":1630539245605,"_cnpm_publish_time":1630539245605,"dist-tags":{"latest":"4.0.1"}}