is-gzip

v2.0.0
Check if a Buffer/Uint8Array is a GZIP file
archive buffer check detect gzip type uint8array

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

npm i is-gzip

Metadata

  • MIT
  • >=4
  • Kevin Mårtensson
  • released 8/13/2017

Downloads

Maintainers