compromise
compromise copied to clipboard
Use units from js-quantities
Is it possible to use the units from js-quantities? https://github.com/gentooboontoo/js-quantities/blob/master/src/quantities.js
yeah, that's pretty-cool. nice find!
that'd be a pretty neat direction for us to go in.
In a perfect word, we have a Term class called Mass
, with it's conversions, a term class called Radiation
with it's conversions, etc - instead of just a generic Value
class, you know?
js-quantities
has few limitations, IMO it's possible to overcome in compromise.js
as eg:
Qty('1 Liter');
is not a recognized unit,
instead these are valid: 1l, 1L, 1 liter
@michaelmesser - not sure if you are still interested but LOTS of units have been added to this project!
Not affiliated with this project - just a lover of the project! But possibly close this issue to help Spencer get things cleaned up! 🥂