{"name":"is-gif","version":"0.1.0","description":"Check if a Buffer/Uint8Array is a GIF image","license":"MIT","repository":{"type":"git","url":"git://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","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js"],"keywords":["gif","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-gif/issues"},"homepage":"https://github.com/sindresorhus/is-gif","_id":"is-gif@0.1.0","dist":{"shasum":"2e3b9bdbc966928337ea7d7b0723433d11461813","tarball":"http://registry-npm.ywwl.com/is-gif/download/is-gif-0.1.0.tgz","integrity":"sha512-G/dUD9Skddb/D6CCoYmzgmfoITL5Jb6w1/4+D4S17/rDylzm26k5WjV7AdSGrbOtqUisAJWJ1mks4aOwZZBfew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsueYi05bF5up7Kf3lA/CQttio7Y7qfMKrdV/hrc6OwgIhAPKQ3LnM1IfRM4UeeahlgRLzFhU7e5JqIEVhtTYXzrnK"}],"size":1131,"noattachment":false,"key":"/is-gif/-/is-gif-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"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":1398101530071,"_cnpm_publish_time":1398101530071,"dist-tags":{"latest":"4.0.1"}}