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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    46,259
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    46,259
  • 1.0.0
    3,656,404
  • 0.1.0
    33

Package Sidebar

Install

npm i is-gzip

Weekly Downloads

3,702,696

Version

2.0.0

License

MIT

Last publish

Collaborators

  • kevva