@corva/convert-units 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/definitions/acousticSlowness.json +34 -0
- package/definitions/angle.json +106 -0
- package/definitions/anglePerLength.json +52 -0
- package/definitions/angularVelocity.json +87 -0
- package/definitions/area.json +106 -0
- package/definitions/concentration.json +34 -0
- package/definitions/current.json +52 -0
- package/definitions/density.json +160 -0
- package/definitions/digital.json +106 -0
- package/definitions/each.json +20 -0
- package/definitions/energy.json +61 -0
- package/definitions/force.json +106 -0
- package/definitions/gammaRadiation.json +34 -0
- package/definitions/gasConcentration.json +124 -0
- package/definitions/gasFlowRate.json +34 -0
- package/definitions/gasVolume.json +250 -0
- package/definitions/gravity.json +43 -0
- package/definitions/gravityRMS.json +34 -0
- package/definitions/inversePressure.json +61 -0
- package/definitions/length.json +97 -0
- package/definitions/lengthPerAngle.json +43 -0
- package/definitions/mass.json +115 -0
- package/definitions/massFlowRate.json +205 -0
- package/definitions/mpl.json +43 -0
- package/definitions/partsPer.json +47 -0
- package/definitions/permiability.json +34 -0
- package/definitions/porosity.json +43 -0
- package/definitions/power.json +43 -0
- package/definitions/pressure.json +142 -0
- package/definitions/pressureGradient.json +43 -0
- package/definitions/proportion.json +52 -0
- package/definitions/resistivity.json +34 -0
- package/definitions/revolutionPerVolume.json +34 -0
- package/definitions/speed.json +97 -0
- package/definitions/spontaneousPotential.json +34 -0
- package/definitions/strokesRate.json +70 -0
- package/definitions/surveyLength.json +43 -0
- package/definitions/temperature.json +44 -0
- package/definitions/time.json +100 -0
- package/definitions/torque.json +61 -0
- package/definitions/unitBucketMapping.json +404 -0
- package/definitions/unitless.json +34 -0
- package/definitions/viscosity.json +28 -0
- package/definitions/voltage.json +70 -0
- package/definitions/volume.json +241 -0
- package/definitions/volumeConcentration.json +34 -0
- package/definitions/volumeFlowRate.json +385 -0
- package/dist/index.cjs +223 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +58 -0
- package/dist/index.d.ts +58 -0
- package/dist/index.js +172 -0
- package/dist/index.js.map +1 -0
- package/package.json +42 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metric": {
|
|
3
|
+
"rpl": {
|
|
4
|
+
"name": {
|
|
5
|
+
"singular": "revolution per litre",
|
|
6
|
+
"plural": "revolution per litre",
|
|
7
|
+
"display": "1/l"
|
|
8
|
+
},
|
|
9
|
+
"to_anchor": 1,
|
|
10
|
+
"aliases": ["rpl"]
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"imperial": {
|
|
14
|
+
"rpg": {
|
|
15
|
+
"name": {
|
|
16
|
+
"singular": "revolution per gallon",
|
|
17
|
+
"plural": "revolution per gallon",
|
|
18
|
+
"display": "1/gal"
|
|
19
|
+
},
|
|
20
|
+
"to_anchor": 1,
|
|
21
|
+
"aliases": ["rpg"]
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"_anchors": {
|
|
25
|
+
"metric": {
|
|
26
|
+
"unit": "rpl",
|
|
27
|
+
"ratio": 3.78541
|
|
28
|
+
},
|
|
29
|
+
"imperial": {
|
|
30
|
+
"unit": "rpg",
|
|
31
|
+
"ratio": 0.26417217685798894
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metric": {
|
|
3
|
+
"m/s": {
|
|
4
|
+
"name": {
|
|
5
|
+
"singular": "Meter per second",
|
|
6
|
+
"plural": "Meters per second",
|
|
7
|
+
"display": "m/s"
|
|
8
|
+
},
|
|
9
|
+
"to_anchor": 3.6,
|
|
10
|
+
"aliases": ["m/s"]
|
|
11
|
+
},
|
|
12
|
+
"m/min": {
|
|
13
|
+
"name": {
|
|
14
|
+
"singular": "Meter per minute",
|
|
15
|
+
"plural": "Meters per minute",
|
|
16
|
+
"display": "m/min"
|
|
17
|
+
},
|
|
18
|
+
"to_anchor": 0.06,
|
|
19
|
+
"aliases": ["m/min"]
|
|
20
|
+
},
|
|
21
|
+
"m/h": {
|
|
22
|
+
"name": {
|
|
23
|
+
"singular": "Meter per hour",
|
|
24
|
+
"plural": "Meters per hour",
|
|
25
|
+
"display": "m/h"
|
|
26
|
+
},
|
|
27
|
+
"to_anchor": 0.001,
|
|
28
|
+
"aliases": ["m/h"]
|
|
29
|
+
},
|
|
30
|
+
"kph": {
|
|
31
|
+
"name": {
|
|
32
|
+
"singular": "Kilometer per hour",
|
|
33
|
+
"plural": "Kilometers per hour",
|
|
34
|
+
"display": "kph"
|
|
35
|
+
},
|
|
36
|
+
"to_anchor": 1,
|
|
37
|
+
"aliases": ["kph"]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"imperial": {
|
|
41
|
+
"mph": {
|
|
42
|
+
"name": {
|
|
43
|
+
"singular": "Mile per hour",
|
|
44
|
+
"plural": "Miles per hour",
|
|
45
|
+
"display": "mph"
|
|
46
|
+
},
|
|
47
|
+
"to_anchor": 1,
|
|
48
|
+
"aliases": ["mph"]
|
|
49
|
+
},
|
|
50
|
+
"knot": {
|
|
51
|
+
"name": {
|
|
52
|
+
"singular": "Knot",
|
|
53
|
+
"plural": "Knots",
|
|
54
|
+
"display": "knot"
|
|
55
|
+
},
|
|
56
|
+
"to_anchor": 1.150779,
|
|
57
|
+
"aliases": ["knot"]
|
|
58
|
+
},
|
|
59
|
+
"ft/s": {
|
|
60
|
+
"name": {
|
|
61
|
+
"singular": "Foot per second",
|
|
62
|
+
"plural": "Feet per second",
|
|
63
|
+
"display": "ft/s"
|
|
64
|
+
},
|
|
65
|
+
"to_anchor": 0.681818,
|
|
66
|
+
"aliases": ["ft/s"]
|
|
67
|
+
},
|
|
68
|
+
"ft/min": {
|
|
69
|
+
"name": {
|
|
70
|
+
"singular": "Foot per minute",
|
|
71
|
+
"plural": "Feet per minute",
|
|
72
|
+
"display": "ft/min"
|
|
73
|
+
},
|
|
74
|
+
"to_anchor": 0.0113636,
|
|
75
|
+
"aliases": ["ft/min"]
|
|
76
|
+
},
|
|
77
|
+
"ft/h": {
|
|
78
|
+
"name": {
|
|
79
|
+
"singular": "Foot per hour",
|
|
80
|
+
"plural": "Feet per hour",
|
|
81
|
+
"display": "ft/h"
|
|
82
|
+
},
|
|
83
|
+
"to_anchor": 0.00018939393939393939,
|
|
84
|
+
"aliases": ["ft/h", "ft_per_hr"]
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"_anchors": {
|
|
88
|
+
"metric": {
|
|
89
|
+
"unit": "kph",
|
|
90
|
+
"ratio": 0.6213711922373341
|
|
91
|
+
},
|
|
92
|
+
"imperial": {
|
|
93
|
+
"unit": "mph",
|
|
94
|
+
"ratio": 1.609344
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metric": {
|
|
3
|
+
"mV": {
|
|
4
|
+
"name": {
|
|
5
|
+
"singular": "mV",
|
|
6
|
+
"plural": "mV",
|
|
7
|
+
"display": "mV"
|
|
8
|
+
},
|
|
9
|
+
"to_anchor": 1,
|
|
10
|
+
"aliases": ["mV", "mv"]
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"imperial": {
|
|
14
|
+
"mV": {
|
|
15
|
+
"name": {
|
|
16
|
+
"singular": "mV",
|
|
17
|
+
"plural": "mV",
|
|
18
|
+
"display": "mV"
|
|
19
|
+
},
|
|
20
|
+
"to_anchor": 1,
|
|
21
|
+
"aliases": ["mV", "mv"]
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"_anchors": {
|
|
25
|
+
"metric": {
|
|
26
|
+
"unit": "mV",
|
|
27
|
+
"ratio": 1
|
|
28
|
+
},
|
|
29
|
+
"imperial": {
|
|
30
|
+
"unit": "mV",
|
|
31
|
+
"ratio": 1
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metric": {
|
|
3
|
+
"strokes/min": {
|
|
4
|
+
"name": {
|
|
5
|
+
"singular": "stroke per minute",
|
|
6
|
+
"plural": "stroke per minute",
|
|
7
|
+
"display": "strokes/min"
|
|
8
|
+
},
|
|
9
|
+
"to_anchor": 1,
|
|
10
|
+
"aliases": ["strokes/min", "spm", "1/m", "1/min"]
|
|
11
|
+
},
|
|
12
|
+
"strokes/sec": {
|
|
13
|
+
"name": {
|
|
14
|
+
"singular": "stroke per second",
|
|
15
|
+
"plural": "stroke per second",
|
|
16
|
+
"display": "strokes/sec"
|
|
17
|
+
},
|
|
18
|
+
"to_anchor": 60,
|
|
19
|
+
"aliases": ["strokes/sec", "sps", "1/s"]
|
|
20
|
+
},
|
|
21
|
+
"strokes/h": {
|
|
22
|
+
"name": {
|
|
23
|
+
"singular": "stroke per hour",
|
|
24
|
+
"plural": "stroke per hour",
|
|
25
|
+
"display": "strokes/h"
|
|
26
|
+
},
|
|
27
|
+
"to_anchor": 0.016666666666666666,
|
|
28
|
+
"aliases": ["strokes/h", "sph", "1/h"]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"imperial": {
|
|
32
|
+
"strokes/min": {
|
|
33
|
+
"name": {
|
|
34
|
+
"singular": "stroke per minute",
|
|
35
|
+
"plural": "stroke per minute",
|
|
36
|
+
"display": "strokes/min"
|
|
37
|
+
},
|
|
38
|
+
"to_anchor": 1,
|
|
39
|
+
"aliases": ["strokes/min", "spm", "1/m", "1/min"]
|
|
40
|
+
},
|
|
41
|
+
"strokes/sec": {
|
|
42
|
+
"name": {
|
|
43
|
+
"singular": "stroke per second",
|
|
44
|
+
"plural": "stroke per second",
|
|
45
|
+
"display": "strokes/sec"
|
|
46
|
+
},
|
|
47
|
+
"to_anchor": 60,
|
|
48
|
+
"aliases": ["strokes/sec", "sps", "1/s"]
|
|
49
|
+
},
|
|
50
|
+
"strokes/h": {
|
|
51
|
+
"name": {
|
|
52
|
+
"singular": "stroke per hour",
|
|
53
|
+
"plural": "stroke per hour",
|
|
54
|
+
"display": "strokes/h"
|
|
55
|
+
},
|
|
56
|
+
"to_anchor": 0.016666666666666666,
|
|
57
|
+
"aliases": ["strokes/h", "sph", "1/h"]
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"_anchors": {
|
|
61
|
+
"metric": {
|
|
62
|
+
"unit": "strokes/min",
|
|
63
|
+
"ratio": 1
|
|
64
|
+
},
|
|
65
|
+
"imperial": {
|
|
66
|
+
"unit": "strokes/min",
|
|
67
|
+
"ratio": 1
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metric": {
|
|
3
|
+
"m": {
|
|
4
|
+
"name": {
|
|
5
|
+
"singular": "Meter",
|
|
6
|
+
"plural": "Meters",
|
|
7
|
+
"display": "m"
|
|
8
|
+
},
|
|
9
|
+
"to_anchor": 1,
|
|
10
|
+
"aliases": ["m", "m.", "meter", "meters"]
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"imperial": {
|
|
14
|
+
"ft": {
|
|
15
|
+
"name": {
|
|
16
|
+
"singular": "Foot",
|
|
17
|
+
"plural": "Feet",
|
|
18
|
+
"display": "ft"
|
|
19
|
+
},
|
|
20
|
+
"to_anchor": 1,
|
|
21
|
+
"aliases": ["ft", "f", "'", "feet", "ftUS"]
|
|
22
|
+
},
|
|
23
|
+
"usft": {
|
|
24
|
+
"name": {
|
|
25
|
+
"singular": "US Survey Foot",
|
|
26
|
+
"plural": "US Survey Feet",
|
|
27
|
+
"display": "usft"
|
|
28
|
+
},
|
|
29
|
+
"to_anchor": 1.000002,
|
|
30
|
+
"aliases": ["usft", "usfeet"]
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"_anchors": {
|
|
34
|
+
"metric": {
|
|
35
|
+
"unit": "m",
|
|
36
|
+
"ratio": 3.28084
|
|
37
|
+
},
|
|
38
|
+
"imperial": {
|
|
39
|
+
"unit": "ft",
|
|
40
|
+
"ratio": 0.30480060960121924
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metric": {
|
|
3
|
+
"C": {
|
|
4
|
+
"name": {
|
|
5
|
+
"singular": "degree Celsius",
|
|
6
|
+
"plural": "degrees Celsius",
|
|
7
|
+
"display": "°C"
|
|
8
|
+
},
|
|
9
|
+
"to_anchor": 1,
|
|
10
|
+
"aliases": ["C", "degc", "degC", "°C"]
|
|
11
|
+
},
|
|
12
|
+
"K": {
|
|
13
|
+
"name": {
|
|
14
|
+
"singular": "degree Kelvin",
|
|
15
|
+
"plural": "degrees Kelvin",
|
|
16
|
+
"display": "°K"
|
|
17
|
+
},
|
|
18
|
+
"to_anchor": 1,
|
|
19
|
+
"anchor_shift": 273.15,
|
|
20
|
+
"aliases": ["K", "degk", "degK"]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"imperial": {
|
|
24
|
+
"F": {
|
|
25
|
+
"name": {
|
|
26
|
+
"singular": "degree Fahrenheit",
|
|
27
|
+
"plural": "degrees Fahrenheit",
|
|
28
|
+
"display": "°F"
|
|
29
|
+
},
|
|
30
|
+
"to_anchor": 1,
|
|
31
|
+
"aliases": ["F", "degf", "degF", "°F", "deg/F"]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"_anchors": {
|
|
35
|
+
"metric": {
|
|
36
|
+
"unit": "C",
|
|
37
|
+
"transform": "val * 9 / 5 + 32"
|
|
38
|
+
},
|
|
39
|
+
"imperial": {
|
|
40
|
+
"unit": "F",
|
|
41
|
+
"transform": "(val - 32) * 5 / 9"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metric": {
|
|
3
|
+
"ns": {
|
|
4
|
+
"name": {
|
|
5
|
+
"singular": "Nanosecond",
|
|
6
|
+
"plural": "Nanoseconds",
|
|
7
|
+
"display": "ns"
|
|
8
|
+
},
|
|
9
|
+
"to_anchor": 0.000000001,
|
|
10
|
+
"aliases": ["ns"]
|
|
11
|
+
},
|
|
12
|
+
"mu": {
|
|
13
|
+
"name": {
|
|
14
|
+
"singular": "Microsecond",
|
|
15
|
+
"plural": "Microseconds",
|
|
16
|
+
"display": "mu"
|
|
17
|
+
},
|
|
18
|
+
"to_anchor": 0.000001,
|
|
19
|
+
"aliases": ["mu"]
|
|
20
|
+
},
|
|
21
|
+
"ms": {
|
|
22
|
+
"name": {
|
|
23
|
+
"singular": "Millisecond",
|
|
24
|
+
"plural": "Milliseconds",
|
|
25
|
+
"display": "ms"
|
|
26
|
+
},
|
|
27
|
+
"to_anchor": 0.001,
|
|
28
|
+
"aliases": ["ms"]
|
|
29
|
+
},
|
|
30
|
+
"s": {
|
|
31
|
+
"name": {
|
|
32
|
+
"singular": "Second",
|
|
33
|
+
"plural": "Seconds",
|
|
34
|
+
"display": "s"
|
|
35
|
+
},
|
|
36
|
+
"to_anchor": 1,
|
|
37
|
+
"aliases": ["s", "sec"]
|
|
38
|
+
},
|
|
39
|
+
"min": {
|
|
40
|
+
"name": {
|
|
41
|
+
"singular": "Minute",
|
|
42
|
+
"plural": "Minutes",
|
|
43
|
+
"display": "min"
|
|
44
|
+
},
|
|
45
|
+
"to_anchor": 60,
|
|
46
|
+
"aliases": ["min"]
|
|
47
|
+
},
|
|
48
|
+
"h": {
|
|
49
|
+
"name": {
|
|
50
|
+
"singular": "Hour",
|
|
51
|
+
"plural": "Hours",
|
|
52
|
+
"display": "hr"
|
|
53
|
+
},
|
|
54
|
+
"to_anchor": 3600,
|
|
55
|
+
"aliases": ["h"]
|
|
56
|
+
},
|
|
57
|
+
"d": {
|
|
58
|
+
"name": {
|
|
59
|
+
"singular": "Day",
|
|
60
|
+
"plural": "Days",
|
|
61
|
+
"display": "d"
|
|
62
|
+
},
|
|
63
|
+
"to_anchor": 86400,
|
|
64
|
+
"aliases": ["d", "day"]
|
|
65
|
+
},
|
|
66
|
+
"week": {
|
|
67
|
+
"name": {
|
|
68
|
+
"singular": "Week",
|
|
69
|
+
"plural": "Weeks",
|
|
70
|
+
"display": "w"
|
|
71
|
+
},
|
|
72
|
+
"to_anchor": 604800,
|
|
73
|
+
"aliases": ["week"]
|
|
74
|
+
},
|
|
75
|
+
"month": {
|
|
76
|
+
"name": {
|
|
77
|
+
"singular": "Month",
|
|
78
|
+
"plural": "Months",
|
|
79
|
+
"display": "m"
|
|
80
|
+
},
|
|
81
|
+
"to_anchor": 2629800,
|
|
82
|
+
"aliases": ["month"]
|
|
83
|
+
},
|
|
84
|
+
"year": {
|
|
85
|
+
"name": {
|
|
86
|
+
"singular": "Year",
|
|
87
|
+
"plural": "Years",
|
|
88
|
+
"display": "yr"
|
|
89
|
+
},
|
|
90
|
+
"to_anchor": 31557600,
|
|
91
|
+
"aliases": ["year"]
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"_anchors": {
|
|
95
|
+
"metric": {
|
|
96
|
+
"unit": "s",
|
|
97
|
+
"ratio": 1
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metric": {
|
|
3
|
+
"Nm": {
|
|
4
|
+
"name": {
|
|
5
|
+
"singular": "Newton Meter",
|
|
6
|
+
"plural": "Newton Meters",
|
|
7
|
+
"display": "Nm"
|
|
8
|
+
},
|
|
9
|
+
"to_anchor": 1,
|
|
10
|
+
"aliases": ["Nm", "N-m"]
|
|
11
|
+
},
|
|
12
|
+
"kNm": {
|
|
13
|
+
"name": {
|
|
14
|
+
"singular": "Kilonewton meter",
|
|
15
|
+
"plural": "Kilonewton meters",
|
|
16
|
+
"display": "kNm"
|
|
17
|
+
},
|
|
18
|
+
"to_anchor": 1000,
|
|
19
|
+
"aliases": ["kNm", "kN-m"]
|
|
20
|
+
},
|
|
21
|
+
"J": {
|
|
22
|
+
"name": {
|
|
23
|
+
"singular": "Joule",
|
|
24
|
+
"plural": "Joules",
|
|
25
|
+
"display": "J"
|
|
26
|
+
},
|
|
27
|
+
"to_anchor": 1,
|
|
28
|
+
"aliases": ["J"]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"imperial": {
|
|
32
|
+
"ft-lbf": {
|
|
33
|
+
"name": {
|
|
34
|
+
"singular": "Foot Pound",
|
|
35
|
+
"plural": "Foot Pounds",
|
|
36
|
+
"display": "ft-lbf"
|
|
37
|
+
},
|
|
38
|
+
"to_anchor": 1,
|
|
39
|
+
"aliases": ["ft-lbf"]
|
|
40
|
+
},
|
|
41
|
+
"ft-klbf": {
|
|
42
|
+
"name": {
|
|
43
|
+
"singular": "Foot Kilopound",
|
|
44
|
+
"plural": "Foot Kilopounds",
|
|
45
|
+
"display": "ft-klbf"
|
|
46
|
+
},
|
|
47
|
+
"to_anchor": 1000,
|
|
48
|
+
"aliases": ["ft-klbf"]
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"_anchors": {
|
|
52
|
+
"metric": {
|
|
53
|
+
"unit": "Nm",
|
|
54
|
+
"ratio": 0.73756214927727
|
|
55
|
+
},
|
|
56
|
+
"imperial": {
|
|
57
|
+
"unit": "ft-lbf",
|
|
58
|
+
"ratio": 1.355817948331392
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|