is-gzip
Check if a Buffer/Uint8Array is a GZIP file
Last updated 9 years ago by kevva .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install is-gzip 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.0                                ...           latest (9 years ago)

3 Versions

  • 2.0.0                                ...           9 years ago
  • 1.0.0                                ...           12 years ago
  • 0.1.0                                ...           13 years ago
Maintainers (1)
Downloads
Total 23
Today 0
This Week 5
This Month 15
Last Day 0
Last Week 3
Last Month 6
Dependencies (0)
None
Dev Dependencies (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE