aboutsummaryrefslogtreecommitdiff
path: root/src/util/bytes.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/bytes.ts')
-rw-r--r--src/util/bytes.ts5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/util/bytes.ts b/src/util/bytes.ts
deleted file mode 100644
index 43ad49c..0000000
--- a/src/util/bytes.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-export const formatBytes = (n: number): string => {
- if (n >= 1_048_576) return `${(n / 1_048_576).toFixed(1)} MB`;
- if (n >= 1024) return `${(n / 1024).toFixed(1)} KB`;
- return `${n} B`;
-};