website/node_modules/is-gif/readme.md

is-gif Build Status

Check if a Buffer/Uint8Array is a GIF image

Install

$ npm install is-gif

Usage

const readChunk = require('read-chunk');
const isGif = require('is-gif');

const buffer = readChunk.sync('unicorn.gif', 0, 3);

isGif(buffer);
//=> true

API

isGif(input)

input

Type: Buffer Uint8Array

It only needs the first 3 bytes.

Related

License

MIT © Sindre Sorhus



JohnCoene/chirp documentation built on May 25, 2021, 6:33 p.m.