uom
uom copied to clipboard
Extensible unit of measure conversion with type safety for typescript
Found this repo which may have some interesting ideas: https://www.npmjs.com/package/uom-ts
https://github.com/dividab/uom/blob/14902aae47f82d94e557237b33768eb7a56c32ee/src/serialize.ts#L17
We do not publish sourcemap files to npm but the js files still reference source maps which causes problems in applications which use webpack source-map-loader.
While it is possible to generically divide any unit by any other unit and get a new unit that works for conversion, it is not possible to get the type...
From offline discussion with @AdamLuotonen: Regarding Unit and Units .... Problems: 1. PoundLbPerPoundLb and KilogramPerKilogram, etc. are reduced down to the same unit (One) because units are always reduced to...