We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b80a38d commit d826155Copy full SHA for d826155
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
-import {partial} from "filesize";
72
-const size = partial({base: 2, standard: "jedec"});
+const size = filesize.partial({base: 2, standard: "jedec"});
73
74
size(265318); // "259.1 KB"
75
0 commit comments