Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function printBytes(obj, len) {
return Table.padLeft(friendlyBytes(obj), len);
}
function printModule(obj) {
t.cell('Size', stats.size, function sizePrinter(val, width) {
let displaySize = bytes(stats.size, { unitSeparator: ' ' });
return width ? Table.padLeft(displaySize, width) : color(displaySize);
});
t.cell('File', color(path.basename(file)));
function markProbability (val, width) {
if (width === null) {
return val
}
return Table.padLeft(val, width)
}