# gzip-all

> Create .gz files for all files in a folder

Latest version **1.0.0** (published 2017-01-01) · WTFPL license · 0 weekly downloads

## Install

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

Provides the command `gzip-all`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-01-01 |
| First published | 2017-01-01 |
| Weekly downloads | 0 |
| License | WTFPL |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | TehShrike |
| Maintainers | tehshrike |
| Keywords | gzip, file |

## Links

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

## Dependencies (3)

- [glob](https://npm.io/package/glob.md) 7.1.1
- [p-map](https://npm.io/package/p-map.md) 1.1.0
- [then-denodeify](https://npm.io/package/then-denodeify.md) 1.0.0

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-01-01

## README

# gzip-all

Recursively generate `.gz` gzipped versions of files recursively for every file in a folder.

## API

A single function that takes two arguments: a [glob](https://www.npmjs.com/package/glob) string, and an optional object to pass in as options to glob.

Returns a promise that resolves to an array of all `.gz` files created.

## Programmatic usage

```js
const gzipAll = require('gzip-all')

gzipAll('**/content/*.md').then(newFiles => {
	console.log('yay, created', newFiles.length, 'compressed files!')
})
```

## CLI usage

```sh
gzip-all "**/content/*.md"
```

## License

[WTFPL](http://wtfpl2.com/)

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