is-ico
v1.0.1
Published
Check if a Buffer/Uint8Array is a .ico file
Downloads
11
Maintainers
Readme
is-ico
Check if a Buffer/Uint8Array is a
.ico
file
Installation
$ npm install --save is-ico
Usage
var readChunk = require('read-chunk'); // npm install read-chunk
var isIco = require('is-ico');
var buffer = readChunk.sync('favicon.ico', 0, 4);
isIco(buffer);
//=> true
License
MIT © Arthur Verschaeve