# gobble-gzip

> Gzips files as a gobble transform

Latest version **0.1.0** (published 2015-10-19) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2015-10-19 |
| First published | 2015-10-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Oskar Segersvärd |
| Maintainers | victorystick |
| Keywords | gobble-plugin, gobble, gzip |

## Links

- npm: https://www.npmjs.com/package/gobble-gzip
- Repository: https://github.com/Victorystick/gobble-gzip
- Homepage: https://github.com/Victorystick/gobble-gzip#readme
- Issues: https://github.com/Victorystick/gobble-gzip/issues
- npm.io page: https://npm.io/package/gobble-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

- 0.1.0 (latest) — 2015-10-19

## README

# gobble-gzip
Compress files with GZIP.

## Installation
Make sure to have [gobble](https://github.com/gobblejs/gobble) installed. Then,
```
npm i -D gobble-gzip
```

## Usage

**gobblefile.js**

```js
var gobble = require('gobble');

var js = gobble( 'js' );

module.exports = gobble([
  js,
  js.transform( 'gzip' )
]);
```

This will make gobble serve all files in the `js/` directory, along with gzip-compressed versions of the `.js` files with a `.js.gz` extension.

To process file types other than JavaScript, such as Markdown, supply the `accept` and `ext` options like so.

```js
markdown.transform( 'gzip', {
  accept: [ '.md', '.markdown' ],
  ext: '.md.gz'
})
```

You can pass additional [options to zlib](https://nodejs.org/api/zlib.html#zlib_options) using the `zlib` option.

## License
MIT. Copyright 2015 Oskar Segersvärd

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