{"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"keywords":["gif","graphics","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"dist-tags":{"latest":"1.0.0"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"description":"Check if a Buffer/Uint8Array is a GIF image","readme":"# is-gif [![Build Status](https://travis-ci.org/sindresorhus/is-gif.svg?branch=master)](https://travis-ci.org/sindresorhus/is-gif)\n\n> Check if a Buffer/Uint8Array is a [GIF](http://en.wikipedia.org/wiki/Graphics_Interchange_Format) image\n\nUsed by [image-type](https://github.com/sindresorhus/image-type).\n\n\n## Install\n\n```sh\n$ npm install --save is-gif\n```\n\n\n## Usage\n\n##### Node.js\n\n```js\nvar readChunk = require('read-chunk'); // npm install read-chunk\nvar isGif = require('is-gif');\nvar buffer = readChunk.sync('unicorn.gif', 0, 3);\n\nisGif(buffer);\n//=> true\n```\n\n##### Browser\n\n```js\nvar xhr = new XMLHttpRequest();\nxhr.open('GET', 'unicorn.gif');\nxhr.responseType = 'arraybuffer';\n\nxhr.onload = function () {\n\tisGif(new Uint8Array(this.response));\n\t//=> true\n};\n\nxhr.send();\n```\n\n\n## API\n\n### isGif(buffer)\n\nAccepts a Buffer (Node.js) or Uint8Array.\n\nIt only needs the first 3 bytes.\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n","repository":{"type":"git","url":"https://github.com/sindresorhus/is-gif"},"users":{"tunnckocore":true,"rocket0191":true},"bugs":{"url":"https://github.com/sindresorhus/is-gif/issues"},"license":"MIT","versions":{"0.1.0":{"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://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/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":{}},"0.1.1":{"name":"is-gif","version":"0.1.1","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.1","dist":{"shasum":"a044335a5f91cdb6295d06e6741355ddf6e6680c","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/is-gif/-/is-gif-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"1.0.0":{"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://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/is-gif/-/is-gif-1.0.0.tgz"},"directories":{}}},"name":"is-gif","time":{"modified":"2017-03-05T11:39:46.161Z","created":"2014-04-21T17:32:10.071Z","0.1.0":"2014-04-21T17:32:10.071Z","0.1.1":"2014-04-29T19:10:05.795Z","1.0.0":"2014-08-14T14:41:12.727Z"},"readmeFilename":"readme.md","homepage":"https://github.com/sindresorhus/is-gif"}