brotli-all
Create .br files for all files in a folder
Last updated a year ago by polearnik .
WTFPL · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install brotli-all 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (a year ago)

1 Versions

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

Copyright 2014 - 2016 © taobao.org |