"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.formatters = void 0;
exports.formatters = {
    formatDate: (date) => date.toISOString(),
    formatNumber: (num) => num.toLocaleString(),
    formatBytes: (bytes) => {
        const sizes = ['Bytes', 'KB', 'MB', 'GB'];
        if (bytes === 0)
            return '0 Bytes';
        const i = Math.floor(Math.log(bytes) / Math.log(1024));
        return Math.round(bytes / Math.pow(1024, i) * 100) / 100 + ' ' + sizes[i];
    }
};
exports.default = exports.formatters;
//# sourceMappingURL=formatters.js.map