{"name":"is-gif","version":"1.0.0","description":"Check if a Buffer/Uint8Array is a GIF image","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/is-gif"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["gif","graphics","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"devDependencies":{"mocha":"*","read-chunk":"^1.0.0"},"gitHead":"5f7948d3e73d798490b6967a106c675e3843702c","bugs":{"url":"https://github.com/sindresorhus/is-gif/issues"},"homepage":"https://github.com/sindresorhus/is-gif","_id":"is-gif@1.0.0","_shasum":"a6d2ae98893007bffa97a1d8c01d63205832097e","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"a6d2ae98893007bffa97a1d8c01d63205832097e","tarball":"http://registry-npm.ywwl.com/is-gif/download/is-gif-1.0.0.tgz","integrity":"sha512-WDzHvXD3xfQ5einLRHRH7iReMuPwuXImHikxQeTWP09kGIv2mf2ZM63e9YHVSq9kEgjJuxRSp5AzH8Hga0+lNw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAN7ZSoQ5X8RKxGxvjRMto4AGmloC2wqeBgFqKr2tFp3AiBjoIdRKaWGEdZxRLJel/Zb7lwLuNEPTHEO3tuNYOUUnw=="}],"size":1073,"noattachment":false,"key":"/is-gif/-/is-gif-1.0.0.tgz"},"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":1408027272727,"_cnpm_publish_time":1408027272727,"dist-tags":{"latest":"4.0.1"}}