# is-gzip

> Check if a Buffer/Uint8Array is a GZIP file

Latest version **2.0.0** (published 2017-08-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-gzip
pnpm add is-gzip
yarn add is-gzip
bun add is-gzip
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2017-08-13 |
| First published | 2014-04-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/is-gzip) |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 24 |
| Author | Kevin Mårtensson |
| Maintainers | kevva |
| Keywords | archive, buffer, check, detect, gzip, type, uint8array |

## Links

- npm: https://www.npmjs.com/package/is-gzip
- Repository: https://github.com/kevva/is-gzip
- Homepage: https://github.com/kevva/is-gzip#readme
- Issues: https://github.com/kevva/is-gzip/issues
- npm.io page: https://npm.io/package/is-gzip

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 2.0.0 (latest) — 2017-08-13
- 1.0.0 — 2014-08-25
- 0.1.0 — 2014-04-22

## README

# is-gzip [![Build Status](https://travis-ci.org/kevva/is-gzip.svg?branch=master)](https://travis-ci.org/kevva/is-gzip)

> Check if a Buffer/Uint8Array is a GZIP file


## Install

```
$ npm install is-gzip
```


## Usage

```js
const fs = require('fs');
const isGzip = require('is-gzip');

isGzip(fs.readFileSync('foo.tar.gz'));
//=> true
```


## License

MIT © [Kevin Mårtensson](https://github.com/kevva)

---
_Source: https://npm.io/package/is-gzip · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
