tabular-filesize-gzip
Show file sizes tabular including Gzip sizes.
Install
$ yarn add tabular-filesize-gzip --dev
Usage
This generates a file size table with multiple sections and groups.
const tabularFilesizeGzip = require('tabular-filesize-gzip')
console.log(tabularFilesizeGzip([
{
title: 'Section 1',
groups: [
{
title: 'JS files',
files: 'test/js/**/*.js',
ignore: [
'test/js/legacy/**',
],
},
{
title: 'CSS files',
files: 'test/css/**/*.css',
},
],
},
{
title: 'Section 2',
groups: [
// ...
]
}
]))
License
MIT © 2023 Jens Simon