Check if a Buffer/Uint8Array is a GZIP file
MIT License
Check if a Buffer/Uint8Array is a GZIP file
$ npm install is-gzip
const fs = require('fs');
const isGzip = require('is-gzip');
isGzip(fs.readFileSync('foo.tar.gz'));
//=> true
MIT © Kevin Mårtensson