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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i is-gzip

    Weekly Downloads

    3,702,696

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • kevva