gzip-all
Create .gz files for all files in a folder
Last updated 4 years ago by tehshrike .
WTFPL · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gzip-all 
SYNC missed versions from official npm registry.

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 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

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

1 Versions

  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 1
Last Month 1
Dependencies (3)
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |