Breaking changes since v7.0.1
- Dropped support for Node.js versions < v14
New feature: localisation
Byte-size now supports localised number formatting using your system locale by default (#9). For example, if you're in Deutschland you'll now see your native numeric formatting:
> byteSize(1000)
ByteSize { value: '1,0', unit: 'kB', long: 'kilobytes' }
Or you can set the locale manually:
> byteSize(1000, { locale: 'en-GB' })
ByteSize { value: '1.0', unit: 'kB', long: 'kilobytes' }