Skip to content

arthurvr/is-ico

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-ico Build Status

Check if a Buffer/Uint8Array is a .ico file

Installation

$ npm install --save is-ico

Usage

const readChunk = require('read-chunk'); // npm install read-chunk
const isIco = require('is-ico');
const buffer = readChunk.sync('favicon.ico', 0, 4);

isIco(buffer);
//=> true

License

MIT © Arthur Verschaeve

About

Check if a Buffer/Uint8Array is an icon file

Resources

License

Stars

Watchers

Forks

Packages

No packages published