node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

is-gzip

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