{"_id":"is-gif","_rev":"708334","name":"is-gif","description":"Check if a Buffer/Uint8Array is a GIF image","dist-tags":{"latest":"4.0.1"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-09-02T14:15:53.000Z","created":"2014-04-21T17:32:10.071Z","4.0.1":"2021-09-02T14:12:33.134Z","4.0.0":"2021-09-01T23:34:05.605Z","3.0.0":"2018-11-02T08:43:39.205Z","2.0.0":"2017-12-31T23:11:30.874Z","1.0.0":"2014-08-14T14:41:12.727Z","0.1.1":"2014-04-29T19:10:05.795Z","0.1.0":"2014-04-21T17:32:10.071Z"},"users":{"rocket0191":true,"kklepikov":true,"tunnckocore":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-gif.git"},"versions":{"4.0.1":{"name":"is-gif","version":"4.0.1","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":"6996c439a5a0d882b865a57e295585a01e5233e2","bugs":{"url":"https://github.com/sindresorhus/is-gif/issues"},"homepage":"https://github.com/sindresorhus/is-gif#readme","_id":"is-gif@4.0.1","_nodeVersion":"14.17.5","_npmVersion":"7.20.3","dist":{"shasum":"4a88b1765bef699fe1f3d71b7e1f4aa8be9387cf","size":1603,"noattachment":false,"key":"/is-gif/-/is-gif-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-gif/download/is-gif-4.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-gif_4.0.1_1630591953025_0.7889553644585487"},"_hasShrinkwrap":false,"publish_time":1630591953134,"_cnpm_publish_time":1630591953134},"4.0.0":{"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":{"shasum":"bf4e9dbb5367222db06265f82712862f5b90c166","size":1596,"noattachment":false,"key":"/is-gif/-/is-gif-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-gif/download/is-gif-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-gif_4.0.0_1630539245454_0.39879775762685554"},"_hasShrinkwrap":false,"publish_time":1630539245605,"_cnpm_publish_time":1630539245605},"3.0.0":{"name":"is-gif","version":"3.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":">=6"},"scripts":{"test":"xo && ava"},"keywords":["gif","graphics","image","img","pic","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"dependencies":{"file-type":"^10.4.0"},"devDependencies":{"ava":"^0.25.0","xo":"^0.23.0"},"gitHead":"376626d248d01c4391d0106c1cdb9ce06e7126c7","bugs":{"url":"https://github.com/sindresorhus/is-gif/issues"},"homepage":"https://github.com/sindresorhus/is-gif#readme","_id":"is-gif@3.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"c4be60b26a301d695bb833b20d9b5d66c6cf83b1","size":1610,"noattachment":false,"key":"/is-gif/-/is-gif-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-gif/download/is-gif-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-gif_3.0.0_1541148219113_0.39078373362681473"},"_hasShrinkwrap":false,"publish_time":1541148219205,"_cnpm_publish_time":1541148219205},"2.0.0":{"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","size":1591,"noattachment":false,"key":"/is-gif/-/is-gif-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-gif/download/is-gif-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-gif-2.0.0.tgz_1514761889935_0.6650962040293962"},"directories":{},"publish_time":1514761890874,"_hasShrinkwrap":false,"_cnpm_publish_time":1514761890874},"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":""}],"dist":{"shasum":"a6d2ae98893007bffa97a1d8c01d63205832097e","size":1073,"noattachment":false,"key":"/is-gif/-/is-gif-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-gif/download/is-gif-1.0.0.tgz"},"directories":{},"publish_time":1408027272727,"_cnpm_publish_time":1408027272727,"_hasShrinkwrap":false},"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","size":1132,"noattachment":false,"key":"/is-gif/-/is-gif-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-gif/download/is-gif-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1398798605795,"_cnpm_publish_time":1398798605795,"_hasShrinkwrap":false},"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","size":1131,"noattachment":false,"key":"/is-gif/-/is-gif-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-gif/download/is-gif-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1398101530071,"_cnpm_publish_time":1398101530071,"_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","_attachments":{},"homepage":"https://github.com/sindresorhus/is-gif#readme","bugs":{"url":"https://github.com/sindresorhus/is-gif/issues"},"license":"MIT"}