@@ -56,26 +56,6 @@ _*(string)*_ Standard unit of measure, can be `iec` or `jedec`, default is `iec`
56
56
### symbols
57
57
_ * (object)* _ Dictionary of IEC/JEDEC symbols to replace for localization, defaults to english if no match is found
58
58
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
- ```
79
59
80
60
## Partial Application
81
61
` filesize.partial() ` takes the second parameter of ` filesize() ` and returns a new function with the configuration applied
0 commit comments