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

feat: add aliases for different units #141

Merged
merged 4 commits into from
Feb 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 45 additions & 20 deletions versions/v1/units.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[

Check warning on line 1 in versions/v1/units.json

View workflow job for this annotation

GitHub Actions / get-duplicates

No equivalent units were introduced in this Pull Request.
{
"externalId": "acceleration:ft-per-sec2",
"name": "FT-PER-SEC2",
Expand Down Expand Up @@ -143,7 +143,8 @@
"metre per square second",
"metre / s²",
"Metre per Square Second",
"meter per SEC2"
"meter per SEC2",
"M PER S2"
],
"symbol": "m/s²",
"conversion": {
Expand Down Expand Up @@ -694,7 +695,8 @@
"degree",
"°",
"DEG",
"Degree"
"Degree",
"DEGA"
],
"symbol": "°",
"conversion": {
Expand Down Expand Up @@ -933,7 +935,8 @@
"Revolution per Minute",
"rev / minute",
"RPM",
"rpm"
"rpm",
"ROT PER MIN"
],
"symbol": "rev/min",
"conversion": {
Expand Down Expand Up @@ -1277,7 +1280,8 @@
"Gram Per Cubic Metre",
"Gram / M3",
"Gram per cubic metre",
"Gram / m³"
"Gram / m³",
"G PER CM?"
],
"symbol": "g/m³",
"conversion": {
Expand Down Expand Up @@ -1401,7 +1405,9 @@
"LB per GAL",
"lb / gal",
"lbm / GAL",
"Pound Mass per GAL"
"Pound Mass per GAL",
"LBM PER GAL",
"PPG"
],
"symbol": "lb/gal",
"conversion": {
Expand Down Expand Up @@ -1648,7 +1654,9 @@
"UNITLESS",
"一",
"Unitless",
"unitless"
"unitless",
"EUC",
"TOTAL"
],
"symbol": "",
"conversion": {
Expand Down Expand Up @@ -2400,7 +2408,8 @@
"ft LB_F",
"ft ⋅ lbf",
"Foot lbf",
"foot lbf"
"foot lbf",
"ft.lbf"
],
"symbol": "ft⋅lbf",
"conversion": {
Expand Down Expand Up @@ -3291,7 +3300,8 @@
"klbf",
"KiloLB_F",
"kilopound force",
"KiloPound Force"
"KiloPound Force",
"KLBF"
],
"symbol": "klbf",
"conversion": {
Expand Down Expand Up @@ -3402,7 +3412,8 @@
"aliasNames": [
"Hz",
"HZ",
"hertz"
"hertz",
"1 PER S"
],
"symbol": "Hz",
"conversion": {
Expand Down Expand Up @@ -3585,7 +3596,8 @@
"1/min",
"per min",
"spm",
"SPM"
"SPM",
"1 PER MIN"
],
"symbol": "/min",
"conversion": {
Expand Down Expand Up @@ -4046,7 +4058,8 @@
"TONNE",
"Tonne",
"t",
"tonne"
"tonne",
"T"
],
"symbol": "t",
"conversion": {
Expand Down Expand Up @@ -4096,7 +4109,8 @@
"kg/m³",
"kg/m3",
"kg/Sm³",
"kg/Sm3"
"kg/Sm3",
"KG PER M3"
],
"symbol": "kg/m³",
"conversion": {
Expand Down Expand Up @@ -6028,7 +6042,8 @@
"kilopound force per square inch",
"KiloLB_F / in²",
"kilopound force / Square Inch",
"KiloLB_F / Square Inch"
"KiloLB_F / Square Inch",
"KPSI"
],
"symbol": "kpsi",
"conversion": {
Expand Down Expand Up @@ -6090,7 +6105,8 @@
"kilopascal",
"KiloPA",
"kPa",
"Kilopascal"
"Kilopascal",
"KPA"
],
"symbol": "kPa",
"conversion": {
Expand Down Expand Up @@ -7601,7 +7617,8 @@
"aliasNames": [
"second",
"SEC",
"s"
"s",
"S"
],
"symbol": "s",
"conversion": {
Expand Down Expand Up @@ -7671,7 +7688,9 @@
"pound force foot",
"lbf ft",
"LB_F FT",
"pound force FT"
"pound force FT",
"LBF.FT",
"LBF·FT"
],
"symbol": "lbf⋅ft",
"conversion": {
Expand Down Expand Up @@ -7730,7 +7749,9 @@
"newton m",
"N Meter",
"N metre",
"newton metre"
"newton metre",
"N.M",
"NM"
],
"symbol": "N⋅m",
"conversion": {
Expand Down Expand Up @@ -8058,7 +8079,8 @@
"M / hour",
"M per hour",
"M / Hour",
"m/h"
"m/h",
"M PER H"
],
"symbol": "m/h",
"conversion": {
Expand Down Expand Up @@ -8106,7 +8128,8 @@
"metre / SEC",
"M / second",
"m / second",
"m/s"
"m/s",
"M PER S"
],
"symbol": "m/s",
"conversion": {
Expand Down Expand Up @@ -9364,7 +9387,9 @@
"Litre per MIN",
"Litre Per Minute",
"Liter per Minute",
"litre per minute"
"litre per minute",
"LT PER MIN",
"LPM"
],
"symbol": "L/min",
"conversion": {
Expand Down