Skip to content

Commit 7b44b1b

Browse files
committed
Updating README.md to remove examples, fixes #154
1 parent ad9a534 commit 7b44b1b

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

README.md

-20
Original file line numberDiff line numberDiff line change
@@ -56,26 +56,6 @@ _*(string)*_ Standard unit of measure, can be `iec` or `jedec`, default is `iec`
5656
### symbols
5757
_*(object)*_ Dictionary of IEC/JEDEC symbols to replace for localization, defaults to english if no match is found
5858

59-
## Examples
60-
61-
```javascript
62-
filesize(500); // "500 B"
63-
filesize(500, {bits: true}); // "4 kbit"
64-
filesize(265318, {base: 2}); // "259.1 KiB"
65-
filesize(265318); // "265.32 kB"
66-
filesize(265318, {round: 0}); // "265 kB"
67-
filesize(265318, {output: "array"}); // [265.32, "kB"]
68-
filesize(265318, {output: "object"}); // {value: 265.32, symbol: "kB", exponent: 1, unit: "kB"}
69-
filesize(1, {symbols: {B: "Б"}}); // "1 Б"
70-
filesize(1024); // "1.02 kB"
71-
filesize(1024, {exponent: 0}); // "1024 B"
72-
filesize(1024, {output: "exponent"}); // 1
73-
filesize(265318, {standard: "jedec"}); // "259.1 KB"
74-
filesize(265318, {base: 2, fullform: true}); // "259.1 kibibytes"
75-
filesize(12, {fullform: true, fullforms: ["байтов"]}); // "12 байтов"
76-
filesize(265318, {separator: ","}); // "265,32 kB"
77-
filesize(265318, {locale: "de"}); // "265,32 kB"
78-
```
7959

8060
## Partial Application
8161
`filesize.partial()` takes the second parameter of `filesize()` and returns a new function with the configuration applied

0 commit comments

Comments
 (0)