Skip to content

Commit 38de690

Browse files
committed
Updated README
1 parent 829b250 commit 38de690

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ filesize.js provides a simple way to get a human readable file size string from
33

44
An optional second parameter is the decimal place to round to.
55

6+
The maximum supported size is a terabyte. When hard drives get bigger, I'll add support for petabytes.
7+
68
## Sample
7-
filesize(1500); // "1.46MB"
9+
filesize(1500); // "1.46KB"
810

9-
filesize("1500000000"); // "1.40TB"
11+
filesize("1500000000"); // "1.40GB"
1012

11-
filesize("1500000000", 0); // "1TB"
13+
filesize("1500000000", 0); // "1GB"
1214

1315
## Information
1416
#### License

0 commit comments

Comments
 (0)