gentooboontoo/js-quantities — pull request #14 by mikberg (2014-06-14 16:00:03+00:00)
Title: Read available units/unit data structure

I'm looking for a way to extract (the names of) all the units available in the library, e.g. "m", "meter", "meters", "metre", "metres", "in, "inch", "inches". Is it possible to access the internal object holding these names today?

I am parsing quantities from a text input field, and want to have a typeahead feature. The way I currently do this is by a manually extracted array, which leads to errors or more labour when this library is updated.