Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Canonicalise to unit representation #12

Open
incansvl opened this issue Apr 10, 2018 · 1 comment
Open

Feature request: Canonicalise to unit representation #12

incansvl opened this issue Apr 10, 2018 · 1 comment

Comments

@incansvl
Copy link

ucum.js: 0.0.2

Currently the ucum.canonicalize function emits a a JSON object that is in the same format as the output of ucum.parse. This is interesting to developers, but less helpful for end users.

It would be useful to have an additional function (perhaps ucum.canonicalString) that would convert a unit code to a properly formatted canonicalised unit code, e.g.-

Input      Output
pg/L       g/L-12
mV/mm      gm/C/s2
@jmandel
Copy link
Owner

jmandel commented Apr 10, 2018

Thanks for the comment! This library isn't actively maintained, but I'd be happy to accept a contribution along these lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants