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

Add support to define custom units #112

Closed phil-mitchell closed 3 years ago

phil-mitchell commented 3 years ago

Introduce a new static method to provide runtime addition of units and prefixes. Conflicts are created at the user's peril, but it provides a path to add custom units without forking the repo and modifying source code.

fixes #96

phil-mitchell commented 3 years ago

I'm not sure it's clear that I don't have write access, so somebody will have to merge this if it's okay.