JavaScript library for quantity calculation and unit conversion
396
stars
103
forks
source link
getSystems() It would be useful to tag/group the unit names by their SI, Imperial or other system and allow conversion toSystem('imperial') #108
Open
bcowgill opened 4 years ago
getSystems() It would be useful to tag/group the unit names by their SI, Imperial or other system and allow conversion toSystem('imperial')
getSystems() ... ['si', 'imperial', ...] Qty.getKinds('si') or Qty.getUnits('length', 'imperial') Qty(n,unit).isSystem('si') Qty(n,unit).toSystem('imperial')
especially if one could register their own unit system somehow...
Qty(250, 'ml').toSystem('cooking') == 1 cup :-)