pnpm
Version:
A fast implementation of npm install
24 lines (15 loc) • 470 B
Markdown
> Check if a Buffer/Uint8Array is a GZIP file
```sh
$ npm install --save is-gzip
```
```js
var isGzip = require('is-gzip');
var read = require('fs').readFileSync;
isGzip(read('foo.tar.gz'));
// => true
```
[](http://en.wikipedia.org/wiki/MIT_License) © [Kevin Mårtensson](https://github.com/kevva)