is-gzip

Check if a Buffer/Uint8Array is a GZIP file

MIT License

Downloads
13.7M
Stars
24
Committers
1

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

Package Rankings
Top 31.66% on Repo1.maven.org
Top 3.29% on Npmjs.org
Top 17.75% on Bower.io
Badges
Extracted from project README
Build Status