convert

The smallest & fastest library for really easy, totally type-safe unit conversions in TypeScript & JavaScript.

MIT License

Downloads
124.8K
Stars
105
Committers
9

Bot releases are visible (Hide)

convert - v5.3.0 Latest Release

Published by github-actions[bot] 5 months ago

5.3.0 (2024-06-04)

Features

  • add a space separating quantity from unit when converting best conversion to string (775d3c1), closes #665
  • support spaces between quantity and unit in convertMany() and ms() (8f7eb2d)
convert - v5.2.0

Published by github-actions[bot] 6 months ago

5.2.0 (2024-04-28)

Features

  • support "m" as an alias for minutes (067a398), closes #659
convert - v5.1.0

Published by github-actions[bot] 6 months ago

5.1.0 (2024-04-24)

Features

  • length: add US survey foot unit (25e1d47)
convert - v5.0.0

Published by github-actions[bot] 8 months ago

5.0.0 (2024-02-19)

⚠ BREAKING CHANGES

  • Exported types have changed, some have been removed. Some supported units were also removed.

Features

convert - v4.14.1

Published by jonahsnider 9 months ago

4.14.1 (2024-01-09)

Bug Fixes

  • improve how best units are calculated (#640) (c5202db)
convert - v4.14.0

Published by jonahsnider 11 months ago

4.14.0 (2023-11-18)

Bug Fixes

Features

  • energy: include other SI prefixes for watt hours (#619) (4a30e7a)
convert - v4.13.2

Published by jonahsnider about 1 year ago

4.13.2 (2023-09-12)

Bug Fixes

  • handle ASCII symbol for SI micro- prefix, closes #606 (07558c1)
convert - v4.13.1

Published by jonahsnider about 1 year ago

4.13.1 (2023-07-23)

Bug Fixes

convert - v4.13.0

Published by jonahsnider over 1 year ago

4.13.0 (2023-05-28)

Features

  • mass: add kilotonne, megatonne, and gigatonne units, closes #594 (0ea9641)
convert - v4.12.0

Published by jonahsnider over 1 year ago

4.12.0 (2023-04-20)

Features

  • time: add femtoseconds and picoseconds to best units, closes #588 (e6ec41d)
  • data: change units for metric to be KB, MB, etc. instead of KiB, MB, etc., closes #588 (b82de95)
convert - v4.11.0

Published by jonahsnider over 1 year ago

4.11.0 (2023-04-14)

Bug Fixes

  • volume: fix conversion ratio for US legal cup, closes #582 (1fb4441)

Features

convert - v4.10.0

Published by jonahsnider over 1 year ago

4.10.0 (2023-02-03)

Bug Fixes

  • volume: fix conversion ratio for cubic feet, closes #572 (79f36f1)

Features

  • area: add in2, ft2, yd2, and mi2 symbols, closes #573 (0af4ab0)
convert - v4.9.0

Published by jonahsnider almost 2 years ago

4.9.0 (2022-12-11)

Features

  • force: add tonne-force unit (7cd3c71)
  • force: add kip unit (5f544b0)
  • force: add SI prefixes for newtons (077abbb)
convert - v4.8.0

Published by jonahsnider almost 2 years ago

4.8.0 (2022-12-02)

Features

  • support rounding the result when converting to the best unit, closes #563 (35413cc)
convert - v4.7.1

Published by jonahsnider almost 2 years ago

4.7.1 (2022-11-21)

Features

  • fix name of global variable in UMD builds, closes #560 (e5d7354)
convert - v4.7.0

Published by jonahsnider about 2 years ago

4.7.0 (2022-10-13)

Features

convert - v4.6.3

Published by jonahsnider about 2 years ago

4.6.3 (2022-09-21)

Bug Fixes

convert - v4.6.2

Published by jonahsnider about 2 years ago

4.6.2 (2022-08-23)

Bug Fixes

  • fix default import in CommonJS, closes #539 (117ad4a)
convert - v4.6.1

Published by jonahsnider about 2 years ago

4.6.1 (2022-08-10)

Performance Improvements

  • reduce bundle size by mangling property keys (aed8a78)
convert - v4.6.0

Published by jonahsnider about 2 years ago

4.6.0 (2022-07-27)

Features