is-gzip
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/is-gzip package

2.0.0 • Public • Published

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

Package Sidebar

Install

npm i is-gzip

Weekly Downloads

3,370,659

Version

2.0.0

License

MIT

Last publish

Collaborators

  • kevva