polearnik / brotli-all

Create .br files for all files in a folder. fork from https://github.com/TehShrike/gzip-all

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

brotli-all

Generate .br brotli 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 .br files created.

Programmatic usage

const brotliAll = require('brotli-all')

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

CLI usage

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

License

WTFPL

About

Create .br files for all files in a folder. fork from https://github.com/TehShrike/gzip-all


Languages

Language:JavaScript 100.0%