refactor: change file name

This commit is contained in:
JackEnx 2024-04-18 17:17:07 -03:00
parent 28d1aec413
commit f710dcdd49
6 changed files with 15 additions and 15 deletions

View file

@ -1,6 +1,6 @@
const FORMAT = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
export const byteFormat = (bytes: number): string => {
export const formatBytes = (bytes: number): string => {
if (!Number.isFinite(bytes) || isNaN(bytes) || bytes < 0) {
return `N/A ${FORMAT[0]}`;
}

View file

@ -1 +1 @@
export * from "./byteFormat";
export * from "./format-bytes";