is-xcf
Check if a Buffer/Uint8Array is an XCF image
Inspired by sindresorhus and his wonderful repos like is-gif.
Install
npm install --save is-xcf
bower install --save is-xcf
Usage
Node.js
var fs = ;var isXCF = ;var buffer = fs; ; // returns true
Browser
var xhr = ;xhr;xhrresponseType = 'arraybuffer'; xhr { ; // returns true}; xhr;
API
isXCF(buffer)
Accepts a Buffer or Unit8Array.
Only needs the first 8 bytes, more is fine though.
License
This module is ISC licensed.