{"_id":"@cjser/is-gif","name":"@cjser/is-gif","dist-tags":{"latest":"4.0.1-cjser.2"},"versions":{"4.0.1-cjser.2":{"name":"@cjser/is-gif","version":"4.0.1-cjser.2","description":"Check if a Buffer/Uint8Array is a GIF image","license":"MIT","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"require":"./dist-cjser/index.cjs","default":"./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"},"main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"4.0.1","cjserVersion":2,"original":{"name":"is-gif","version":"4.0.1","exports":"./index.js","repository":"sindresorhus/is-gif","files":["index.js"],"scripts":{"test":"xo && ava"}}},"_id":"@cjser/is-gif@4.0.1-cjser.2","gitHead":"a4bef54d7d22d3d9a6b84528457938d84cd65fe7","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-bxcew5DGa/JSH+hSB56iRL2XtmTF8Mg2g3F8O3FgkDE/vYFWB/2hYCFmdgd1saYcRH518lzVxkeXPni7qFcgUQ==","shasum":"62d50fd85e2b8e728855126fb9041d31bfa86331","tarball":"https://registry.npmjs.org/@cjser/is-gif/-/is-gif-4.0.1-cjser.2.tgz","fileCount":5,"unpackedSize":4631,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIECmId2OZOJ+WmW+al9CT3398lIZnR/BYEVA7TCGMVmaAiAmBKJAvZQvEAT897Qk0zyCR8lwErzXqLV8g6SdKazMlQ=="}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-gif_4.0.1-cjser.2_1778158711062_0.23699503299207914"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T12:58:30.991Z","4.0.1-cjser.2":"2026-05-07T12:58:31.234Z","modified":"2026-05-07T12:58:31.478Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Check if a Buffer/Uint8Array is a GIF image","keywords":["gif","graphics","image","picture","photo","type","detect","check","is","exif","binary","buffer","uint8array"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","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\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/sindresorhus/is-gif\n","readmeFilename":"readme.md","_rev":"1-eb93c8724762d2c1f1556d2da6ca4f9f"}