We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71a6336 commit 87f817cCopy full SHA for 87f817c
README.md
@@ -5,7 +5,7 @@
5
filesize.js provides a simple way to get a human readable file size string from a number (float or integer) or string.
6
7
```javascript
8
-import filesize from "filesize";
+import {filesize} from "filesize";
9
filesize(265318, {base: 2, standard: "jedec"}); // "259.1 KB"
10
```
11
@@ -68,8 +68,8 @@ upon execution. This can be used to reduce `Object` creation if you call `filesi
68
in lexical scope.
69
70
71
72
-const size = filesize.partial({base: 2, standard: "jedec"});
+import {partial} from "filesize";
+const size = partial({base: 2, standard: "jedec"});
73
74
size(265318); // "259.1 KB"
75
0 commit comments