UNPKG

file-sizeof

Version:

minimalistic size of for files using the native nodeJs fs stats

21 lines (20 loc) 595 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var SizeOf = /** @class */ (function () { function SizeOf(B, KB, MB, GB, TB, PB) { if (B === void 0) { B = 0.0; } if (KB === void 0) { KB = 0.0; } if (MB === void 0) { MB = 0.0; } if (GB === void 0) { GB = 0.0; } if (TB === void 0) { TB = 0.0; } if (PB === void 0) { PB = 0.0; } this.B = B; this.KB = KB; this.MB = MB; this.GB = GB; this.TB = TB; this.PB = PB; } return SizeOf; }()); exports.default = SizeOf;