All Projects → kevva → is-gzip

kevva / is-gzip

Licence: MIT license
Check if a Buffer/Uint8Array is a GZIP file

Programming Languages

javascript
184084 projects - #8 most used programming language

is-gzip Build Status

Check if a Buffer/Uint8Array is a GZIP file

Install

$ npm install is-gzip

Usage

const fs = require('fs');
const isGzip = require('is-gzip');

isGzip(fs.readFileSync('foo.tar.gz'));
//=> true

License

MIT © Kevin Mårtensson

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].