npm byte-size 8.0.0
v8.0.0

latest releases: 9.0.0, 8.2.1, 8.2.0...
3 years ago

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' }

Don't miss a new byte-size release

NewReleases is sending notifications on new releases.