We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 829b250 commit 38de690Copy full SHA for 38de690
README.md
@@ -3,12 +3,14 @@ filesize.js provides a simple way to get a human readable file size string from
3
4
An optional second parameter is the decimal place to round to.
5
6
+The maximum supported size is a terabyte. When hard drives get bigger, I'll add support for petabytes.
7
+
8
## Sample
-filesize(1500); // "1.46MB"
9
+filesize(1500); // "1.46KB"
10
-filesize("1500000000"); // "1.40TB"
11
+filesize("1500000000"); // "1.40GB"
12
-filesize("1500000000", 0); // "1TB"
13
+filesize("1500000000", 0); // "1GB"
14
15
## Information
16
#### License
0 commit comments