Digital Storage Converter
trekkbyte V1.0 Conversions you can do:
Bits (bit)
- b - bit
- kbit
>
kilobit- Mbit
>
megabit- Gbit
>
gigabit- Tbit
>
terabit- Pbit
>
petabit- Ebit
>
exabit- Zbit
>
zettabit- Ybit
>
yottabit- Kibit
>
kibibit- Mibit
>
mebibit- Gibit
>
gibibit- Tibit
>
tebibit- Pibit
>
pebibit- Eibit
>
exbibit- Zibit
>
zebibit- Yibit
>
yobibit
Bytes (B)
- B
>
byte- kB
>
kilobyte- MB
>
megabyte- GB
>
gigabyte- TB
>
terabyte- PB
>
petabyte- EB
>
exabyte- ZB
>
zettabyte- YB
>
yottabyte- KiB
>
kibibyte- MiB
>
mebibyte- GiB
>
gibibyte- TiB
>
tebibyte- PiB
>
pebibyte- EiB
>
exbibyte- ZiB
>
zebibyte- YiB
>
yobibyte
Usage:
Console:
λ npm i trekkbyte
JavaScript file:
// trekkbyte(value, from, to)const converted = console
Console:
λ value: 2 from: 'gibibyte' to: 'mebibyte' converted: 2048
Examples:
// converted values // { ..., converted: 26562.5 } // { ..., converted: 5.5 } // { ..., converted: 37.25290298461914 } // { ..., converted: 3589.5 } // get all storage values in a objecttrekkbyte // {b: { storage: 0.125, name: 'bit', ... }}
ML
010100200300203004004050060000700007008080
Else:
- No dependencies.