We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Either !fu or !freedom-units
!fu
!freedom-units
Should automatically detect and convert a few common units
Examples !fu 30 C -> "86° F" !fu 100m -> "109 yards" !fu 5k -> "3.1mi"
!fu 30 C
!fu 100m
!fu 5k
I think you can just use some sort of string.toLowerCase().contains("m") to guess the initial unit
string.toLowerCase().contains("m")
And then either create your own functions or import and use https://www.npmjs.com/package/convert-units
The text was updated successfully, but these errors were encountered:
Other possible converions:
!fu 10cm -> inches !fu 48g -> oz/ lbs !fu 100kg -> lbs
!fu 10cm
!fu 48g
!fu 100kg
Sorry, something went wrong.
dibs
kdliu86
No branches or pull requests
Either
!fu
or!freedom-units
Should automatically detect and convert a few common units
Examples
!fu 30 C
-> "86° F"!fu 100m
-> "109 yards"!fu 5k
-> "3.1mi"I think you can just use some sort of
string.toLowerCase().contains("m")
to guess the initial unitAnd then either create your own functions or import and use https://www.npmjs.com/package/convert-units
The text was updated successfully, but these errors were encountered: