Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

Latest commit

 

History

History
45 lines (27 loc) · 765 Bytes

changelog.md

File metadata and controls

45 lines (27 loc) · 765 Bytes

Changelog

Archived Releases:

v2.1.1

Bug Fixes

  • fix exports for deno
  • exclude mod.ts from type checking

v2.1.0

New Features

  • added support for Deno

    import bytes from 'https://deno.gg/bytes'
    
    bytes('25 KB') // 25000

v2.0.0

Breaking Changes

  • you now need to use node.js v18.

New Features

  • you can now choose your desired prefix.

    import bytes from '@azury/bytes'
    
    bytes('25 KiB') // 25*1024
    bytes('25 Kibibytes') // 25*1024
    
    bytes(61217, { prefix: 'metric' }) // 61.22 KB
    bytes(61217, { prefix: 'binary' }) // 59.78 KiB
    bytes(61217) // 61.22 KB