v3.0.0
Breaking since v2
The library no longer assumes you require a formatted string (e.g. '2.4 Kib'
) . It returns an object containing the raw values (e.g. { value: '1.6', unit: 'ko' }
and you can format them however you please.
New feature
@adrai added support for the octet unit.