Create .gz files for all files in a folder
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fixtures
.gitignore
.npmignore
.travis.yml
bin.js
index.js
package.json
readme.md
test.js

readme.md

gzip-all

Generate .gz gzipped versions of files recursively for every file in a folder.

API

A single function that takes two arguments: a 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

const gzipAll = require('gzip-all')

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

CLI usage

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

License

WTFPL