2.0.0 • Published 7 years ago

is-gzip v2.0.0

Weekly downloads
648,887
License
MIT
Repository
github
Last release
7 years ago

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