compromise icon indicating copy to clipboard operation
compromise copied to clipboard

Use units from js-quantities

Open michaelmesser opened this issue 8 years ago • 2 comments

Is it possible to use the units from js-quantities? https://github.com/gentooboontoo/js-quantities/blob/master/src/quantities.js

michaelmesser avatar Jun 01 '16 01:06 michaelmesser

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?

spencermountain avatar Jun 06 '16 22:06 spencermountain

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

nilooy avatar Jun 26 '22 22:06 nilooy

@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! 🥂

MarketingPip avatar Mar 08 '24 00:03 MarketingPip