Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-gzip

kevva10.2mMIT2.0.0TypeScript support: definitely-typed

Check if a Buffer/Uint8Array is a GZIP file

archive, buffer, check, detect, gzip, type, uint8array

readme

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