node package manager

is-gzip

is-gzip Build Status

Check if a Buffer/Uint8Array is a GZIP file

Install

$ npm install --save is-gzip

Usage

var isGzip = require('is-gzip');
var read = require('fs').readFileSync;
 
isGzip(read('foo.tar.gz'));
// => true 

License

MIT License © Kevin Mårtensson