UNPKG

gzip-all

Version:

Create .gz files for all files in a folder

10 lines (6 loc) 213 B
#!/usr/bin/env node const gzipAll = require('./index') const path = process.argv[2] gzipAll(path) .then(gzippedFiles => console.log('gzipped', gzippedFiles.length, 'files')) .catch(err => console.error(err))