dividab / uom

Extensible unit of measure conversion with type safety for typescript
MIT License
18 stars 1 forks source link

Interesting repo #24

Open jonaskello opened 5 years ago

jonaskello commented 5 years ago

Found this repo which may have some interesting ideas:

https://www.npmjs.com/package/uom-ts

jonaskello commented 4 years ago

One more:

https://github.com/jscheiny/safe-units

RebeccaStevens commented 1 year ago

I'm jumping on this too and have decided to make my own version, heavily inspired by uom-ts.

https://github.com/RebeccaStevens/uom-types

jonaskello commented 1 year ago

@RebeccaStevens Nice, I may try that one out if I can find the time :-) This library started many years ago as a C# port (which in turn was a Java port) to one of the first typescript versions. So I think there is a lot of nice type magic that has been added to typescript since then that could be used to make a much nicer library.