jonahsnider / convert

The smallest & fastest library for really easy, totally type-safe unit conversions in TypeScript & JavaScript.
https://convert.js.org
MIT License
121 stars 17 forks source link

[Feature Request]: Support for units of speed and acceleration #609

Open michaelessiet opened 1 year ago

michaelessiet commented 1 year ago

This is not an issue but a feature request to add units of speed to convert. Data sizes (e.g 1tb to kb) would be another great addition. Thanks for all the good work on this so far.

jonahsnider commented 1 year ago

Data is already a supported format since v1.

Compound units, like speed (distance/time), would definitely be a useful addition to the library, but are difficult to implement with the way the project is currently setup. I can play around with it some though, and see if I'm able to come up with a solution.

ozkoidi commented 1 year ago

@jonahsnider thanks for checking this 👍 Would be great to be able to do those conversions directly, such as meter/second to foot/minute, instead of doing the converstion of just the length unit with the library and then dividing the result by 60 on my side