Skip to content

Commit 87f817c

Browse files
committed
Revert "Updating README.md"
This reverts commit d826155.
1 parent 71a6336 commit 87f817c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
filesize.js provides a simple way to get a human readable file size string from a number (float or integer) or string.
66

77
```javascript
8-
import filesize from "filesize";
8+
import {filesize} from "filesize";
99
filesize(265318, {base: 2, standard: "jedec"}); // "259.1 KB"
1010
```
1111

@@ -68,8 +68,8 @@ upon execution. This can be used to reduce `Object` creation if you call `filesi
6868
in lexical scope.
6969

7070
```javascript
71-
import filesize from "filesize";
72-
const size = filesize.partial({base: 2, standard: "jedec"});
71+
import {partial} from "filesize";
72+
const size = partial({base: 2, standard: "jedec"});
7373

7474
size(265318); // "259.1 KB"
7575
```

0 commit comments

Comments
 (0)