{"name":"is-gif","version":"2.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"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["gif","graphics","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"devDependencies":{"ava":"*","xo":"*"},"dependencies":{"file-type":"^7.4.0"},"gitHead":"5cad7c79ed8283498406f8ef66e1321decd0b3cd","bugs":{"url":"https://github.com/sindresorhus/is-gif/issues"},"homepage":"https://github.com/sindresorhus/is-gif#readme","_id":"is-gif@2.0.0","_shasum":"be88c043a7d2d8e4c896e411ff1a1a28957910fe","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"be88c043a7d2d8e4c896e411ff1a1a28957910fe","tarball":"http://registry-npm.ywwl.com/is-gif/download/is-gif-2.0.0.tgz","integrity":"sha512-s/yArpjzwIJzcLvSbhzsFHF0riAARh4WkLuQ4tLE6i/UHLsWoh5A50/MTR20mkORLDEN+v5LZmIlR54hqjDgsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAmIvhjenYyisiNl4iLBj/S96ClmQlL3YWHO76x70z76AiBnIQ+xP/rNMRTRABaFzSAkkL+c9CTgjX6ijBV94DRr7g=="}],"size":1591,"noattachment":false,"key":"/is-gif/-/is-gif-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-gif-2.0.0.tgz_1514761889935_0.6650962040293962"},"directories":{},"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":1514761890874,"_cnpm_publish_time":1514761890874,"dist-tags":{"latest":"4.0.1"}}