Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return console.log(bundles.join('\n'));
}
var t = new Table();
R.each(function (bundle) {
t.cell('Bundle', bundle.name);
t.cell('Size', bundle.size, formatSize);
t.cell('Gzipped', bundle.gzipped, formatSize);
t.newRow();
}, bundles);
t.sort(['Size|des']);
t.total('Size', Table.aggr.sum, formatSize);
t.total('Gzipped', Table.aggr.sum, formatSize);
console.log(t.toString());
}
if (options.plain) {
return console.log(bundles.join('\n'));
}
var t = new Table();
R.each(function (bundle) {
t.cell('Bundle', bundle.name);
t.cell('Size', bundle.size, formatSize);
t.cell('Gzipped', bundle.gzipped, formatSize);
t.newRow();
}, bundles);
t.sort(['Size|des']);
t.total('Size', Table.aggr.sum, formatSize);
t.total('Gzipped', Table.aggr.sum, formatSize);
console.log(t.toString());
}