Skip to content

Commit

Permalink
Updating README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Sep 29, 2022
1 parent b80a38d commit d826155
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
filesize.js provides a simple way to get a human readable file size string from a number (float or integer) or string.

```javascript
import {filesize} from "filesize";
import filesize from "filesize";
filesize(265318, {base: 2, standard: "jedec"}); // "259.1 KB"
```

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

```javascript
import {partial} from "filesize";
const size = partial({base: 2, standard: "jedec"});
import filesize from "filesize";
const size = filesize.partial({base: 2, standard: "jedec"});

size(265318); // "259.1 KB"
```
Expand Down

0 comments on commit d826155

Please sign in to comment.