{"id":18095214,"url":"https://github.com/sindresorhus/is-gif","last_synced_at":"2025-06-27T22:36:48.133Z","repository":{"id":16252565,"uuid":"19000483","full_name":"sindresorhus/is-gif","owner":"sindresorhus","description":"Check if a Buffer/Uint8Array is a GIF image","archived":false,"fork":false,"pushed_at":"2022-07-08T12:13:40.000Z","size":87,"stargazers_count":28,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-17T02:51:27.464Z","etag":null,"topics":["buffer","file-type","gif","nodejs","npm-package","uint8array"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sindresorhus.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/security.md","support":null},"funding":{"github":"sindresorhus","open_collective":"sindresorhus","custom":"https://sindresorhus.com/donate"}},"created_at":"2014-04-21T17:30:45.000Z","updated_at":"2025-01-07T20:10:56.000Z","dependencies_parsed_at":"2022-08-31T00:01:58.666Z","dependency_job_id":null,"html_url":"https://github.com/sindresorhus/is-gif","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/sindresorhus/is-gif","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fis-gif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fis-gif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fis-gif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fis-gif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/is-gif/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fis-gif/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261029854,"owners_count":23099828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["buffer","file-type","gif","nodejs","npm-package","uint8array"],"created_at":"2024-10-31T19:09:35.929Z","updated_at":"2025-06-27T22:36:48.050Z","avatar_url":"https://github.com/sindresorhus.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://sindresorhus.com/donate"],"categories":[],"sub_categories":[],"readme":"# is-gif\n\n\u003e 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//=\u003e 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fis-gif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Fis-gif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fis-gif/lists"}