gentooboontoo / js-quantities

JavaScript library for quantity calculation and unit conversion
http://gentooboontoo.github.io/js-quantities/
MIT License
396 stars 102 forks source link

Added in function to get prefixes and units. Address #48, #14 #52

Closed vsmalladi closed 8 years ago

vsmalladi commented 8 years ago

Address issues in #48 and #14. Uses code from @mikberg

gentooboontoo commented 8 years ago

Fixed by #53. Thanks for the PR but I finally chose an alternative which fully separates aliases and units responsibilities, thus avoiding the multi-dimensional array for getUnits. BTW, no solution is perfect because the other one makes the use of units identifiers mandatory.