@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,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bits": {
|
|
3
|
+
"b": {
|
|
4
|
+
"name": {
|
|
5
|
+
"singular": "Bit",
|
|
6
|
+
"plural": "Bits",
|
|
7
|
+
"display": "b"
|
|
8
|
+
},
|
|
9
|
+
"to_anchor": 1,
|
|
10
|
+
"aliases": ["b"]
|
|
11
|
+
},
|
|
12
|
+
"Kb": {
|
|
13
|
+
"name": {
|
|
14
|
+
"singular": "Kilobit",
|
|
15
|
+
"plural": "Kilobits",
|
|
16
|
+
"display": "Kb"
|
|
17
|
+
},
|
|
18
|
+
"to_anchor": 1024,
|
|
19
|
+
"aliases": ["Kb"]
|
|
20
|
+
},
|
|
21
|
+
"Mb": {
|
|
22
|
+
"name": {
|
|
23
|
+
"singular": "Megabit",
|
|
24
|
+
"plural": "Megabits",
|
|
25
|
+
"display": "Mb"
|
|
26
|
+
},
|
|
27
|
+
"to_anchor": 1048576,
|
|
28
|
+
"aliases": ["Mb"]
|
|
29
|
+
},
|
|
30
|
+
"Gb": {
|
|
31
|
+
"name": {
|
|
32
|
+
"singular": "Gigabit",
|
|
33
|
+
"plural": "Gigabits",
|
|
34
|
+
"display": "Gb"
|
|
35
|
+
},
|
|
36
|
+
"to_anchor": 1073741824,
|
|
37
|
+
"aliases": ["Gb"]
|
|
38
|
+
},
|
|
39
|
+
"Tb": {
|
|
40
|
+
"name": {
|
|
41
|
+
"singular": "Terabit",
|
|
42
|
+
"plural": "Terabits",
|
|
43
|
+
"display": "Tb"
|
|
44
|
+
},
|
|
45
|
+
"to_anchor": 1099511627776,
|
|
46
|
+
"aliases": ["Tb"]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"bytes": {
|
|
50
|
+
"B": {
|
|
51
|
+
"name": {
|
|
52
|
+
"singular": "Byte",
|
|
53
|
+
"plural": "Bytes",
|
|
54
|
+
"display": "B"
|
|
55
|
+
},
|
|
56
|
+
"to_anchor": 1,
|
|
57
|
+
"aliases": ["B"]
|
|
58
|
+
},
|
|
59
|
+
"KB": {
|
|
60
|
+
"name": {
|
|
61
|
+
"singular": "Kilobyte",
|
|
62
|
+
"plural": "Kilobytes",
|
|
63
|
+
"display": "KB"
|
|
64
|
+
},
|
|
65
|
+
"to_anchor": 1024,
|
|
66
|
+
"aliases": ["KB"]
|
|
67
|
+
},
|
|
68
|
+
"MB": {
|
|
69
|
+
"name": {
|
|
70
|
+
"singular": "Megabyte",
|
|
71
|
+
"plural": "Megabytes",
|
|
72
|
+
"display": "MB"
|
|
73
|
+
},
|
|
74
|
+
"to_anchor": 1048576,
|
|
75
|
+
"aliases": ["MB"]
|
|
76
|
+
},
|
|
77
|
+
"GB": {
|
|
78
|
+
"name": {
|
|
79
|
+
"singular": "Gigabyte",
|
|
80
|
+
"plural": "Gigabytes",
|
|
81
|
+
"display": "GB"
|
|
82
|
+
},
|
|
83
|
+
"to_anchor": 1073741824,
|
|
84
|
+
"aliases": ["GB"]
|
|
85
|
+
},
|
|
86
|
+
"TB": {
|
|
87
|
+
"name": {
|
|
88
|
+
"singular": "Terabyte",
|
|
89
|
+
"plural": "Terabytes",
|
|
90
|
+
"display": "TB"
|
|
91
|
+
},
|
|
92
|
+
"to_anchor": 1099511627776,
|
|
93
|
+
"aliases": ["TB"]
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"_anchors": {
|
|
97
|
+
"bits": {
|
|
98
|
+
"unit": "b",
|
|
99
|
+
"ratio": 0.125
|
|
100
|
+
},
|
|
101
|
+
"bytes": {
|
|
102
|
+
"unit": "B",
|
|
103
|
+
"ratio": 8
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metric": {
|
|
3
|
+
"ea": {
|
|
4
|
+
"name": {
|
|
5
|
+
"singular": "Each",
|
|
6
|
+
"plural": "Each",
|
|
7
|
+
"display": "Each"
|
|
8
|
+
},
|
|
9
|
+
"to_anchor": 1,
|
|
10
|
+
"aliases": ["ea"]
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"imperial": {},
|
|
14
|
+
"_anchors": {
|
|
15
|
+
"metric": {
|
|
16
|
+
"unit": "ea",
|
|
17
|
+
"ratio": 1
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -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"]
|
|
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", "ft.lbf"]
|
|
40
|
+
},
|
|
41
|
+
"ft-klbf": {
|
|
42
|
+
"name": {
|
|
43
|
+
"singular": "Foot Kilopound",
|
|
44
|
+
"plural": "Foot Kilopounds",
|
|
45
|
+
"display": "kft-lbf"
|
|
46
|
+
},
|
|
47
|
+
"to_anchor": 1000,
|
|
48
|
+
"aliases": ["ft-klbf", "kft-lbf", "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
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metric": {
|
|
3
|
+
"N": {
|
|
4
|
+
"name": {
|
|
5
|
+
"singular": "Newton",
|
|
6
|
+
"plural": "Newtons",
|
|
7
|
+
"display": "N"
|
|
8
|
+
},
|
|
9
|
+
"to_anchor": 1,
|
|
10
|
+
"aliases": ["N"]
|
|
11
|
+
},
|
|
12
|
+
"kN": {
|
|
13
|
+
"name": {
|
|
14
|
+
"singular": "Kilonewton",
|
|
15
|
+
"plural": "Kilonewtons",
|
|
16
|
+
"display": "kN"
|
|
17
|
+
},
|
|
18
|
+
"to_anchor": 1000,
|
|
19
|
+
"aliases": ["kN"]
|
|
20
|
+
},
|
|
21
|
+
"daN": {
|
|
22
|
+
"name": {
|
|
23
|
+
"singular": "Dekanewton",
|
|
24
|
+
"plural": "Dekanewtons",
|
|
25
|
+
"display": "daN"
|
|
26
|
+
},
|
|
27
|
+
"to_anchor": 10,
|
|
28
|
+
"aliases": ["daN"]
|
|
29
|
+
},
|
|
30
|
+
"kdaN": {
|
|
31
|
+
"name": {
|
|
32
|
+
"singular": "KiloDekanewton",
|
|
33
|
+
"plural": "KiloDekanewtons",
|
|
34
|
+
"display": "kdaN"
|
|
35
|
+
},
|
|
36
|
+
"to_anchor": 10000,
|
|
37
|
+
"aliases": ["kdaN"]
|
|
38
|
+
},
|
|
39
|
+
"g": {
|
|
40
|
+
"name": {
|
|
41
|
+
"singular": "g Force (metric)",
|
|
42
|
+
"plural": "g Force (metric)",
|
|
43
|
+
"display": "g"
|
|
44
|
+
},
|
|
45
|
+
"to_anchor": 9.80665,
|
|
46
|
+
"aliases": ["g", "g-force"]
|
|
47
|
+
},
|
|
48
|
+
"TONNEf": {
|
|
49
|
+
"name": {
|
|
50
|
+
"singular": "Ton Force (metric)",
|
|
51
|
+
"plural": "Ton Force (metric)",
|
|
52
|
+
"display": "TONNEf"
|
|
53
|
+
},
|
|
54
|
+
"to_anchor": 9806.65,
|
|
55
|
+
"aliases": ["TONNEf"]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"imperial": {
|
|
59
|
+
"lbf": {
|
|
60
|
+
"name": {
|
|
61
|
+
"singular": "Pound Force",
|
|
62
|
+
"plural": "Pound Force",
|
|
63
|
+
"display": "lbf"
|
|
64
|
+
},
|
|
65
|
+
"to_anchor": 1,
|
|
66
|
+
"aliases": ["lbf"]
|
|
67
|
+
},
|
|
68
|
+
"klbf": {
|
|
69
|
+
"name": {
|
|
70
|
+
"singular": "Kilopound Force",
|
|
71
|
+
"plural": "Kilopound Force",
|
|
72
|
+
"display": "klbf"
|
|
73
|
+
},
|
|
74
|
+
"to_anchor": 1000,
|
|
75
|
+
"aliases": ["klbf"]
|
|
76
|
+
},
|
|
77
|
+
"TONf US": {
|
|
78
|
+
"name": {
|
|
79
|
+
"singular": "Ton Force (short)",
|
|
80
|
+
"plural": "Ton Force (short)",
|
|
81
|
+
"display": "TONf US"
|
|
82
|
+
},
|
|
83
|
+
"to_anchor": 2000,
|
|
84
|
+
"aliases": ["TONf US"]
|
|
85
|
+
},
|
|
86
|
+
"TONf(long)": {
|
|
87
|
+
"name": {
|
|
88
|
+
"singular": "Ton Force (long)",
|
|
89
|
+
"plural": "Ton Force (long)",
|
|
90
|
+
"display": "TONf(long)"
|
|
91
|
+
},
|
|
92
|
+
"to_anchor": 2240,
|
|
93
|
+
"aliases": ["TONf(long)"]
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"_anchors": {
|
|
97
|
+
"metric": {
|
|
98
|
+
"unit": "N",
|
|
99
|
+
"ratio": 0.2248089431
|
|
100
|
+
},
|
|
101
|
+
"imperial": {
|
|
102
|
+
"unit": "lbf",
|
|
103
|
+
"ratio": 4.448221615254772
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metric": {
|
|
3
|
+
"API": {
|
|
4
|
+
"name": {
|
|
5
|
+
"singular": "API Units",
|
|
6
|
+
"plural": "API Units",
|
|
7
|
+
"display": "API Units"
|
|
8
|
+
},
|
|
9
|
+
"to_anchor": 1,
|
|
10
|
+
"aliases": ["API", "api", "api units"]
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"imperial": {
|
|
14
|
+
"API": {
|
|
15
|
+
"name": {
|
|
16
|
+
"singular": "API Units",
|
|
17
|
+
"plural": "API Units",
|
|
18
|
+
"display": "API Units"
|
|
19
|
+
},
|
|
20
|
+
"to_anchor": 1,
|
|
21
|
+
"aliases": ["API", "api", "api units"]
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"_anchors": {
|
|
25
|
+
"metric": {
|
|
26
|
+
"unit": "API",
|
|
27
|
+
"ratio": 1
|
|
28
|
+
},
|
|
29
|
+
"imperial": {
|
|
30
|
+
"unit": "API",
|
|
31
|
+
"ratio": 1
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metric": {
|
|
3
|
+
"Units (0-10000u)": {
|
|
4
|
+
"name": {
|
|
5
|
+
"singular": "Unit (0-10000u)",
|
|
6
|
+
"plural": "Units (0-10000u)",
|
|
7
|
+
"display": "Units (0-10000u)"
|
|
8
|
+
},
|
|
9
|
+
"to_anchor": 0.01,
|
|
10
|
+
"aliases": ["Units (0-10000u)"]
|
|
11
|
+
},
|
|
12
|
+
"Units (0-5000u)": {
|
|
13
|
+
"name": {
|
|
14
|
+
"singular": "Unit (0-5000u)",
|
|
15
|
+
"plural": "Units (0-5000u)",
|
|
16
|
+
"display": "Units (0-5000u)"
|
|
17
|
+
},
|
|
18
|
+
"to_anchor": 0.02,
|
|
19
|
+
"aliases": ["Units (0-5000u)"]
|
|
20
|
+
},
|
|
21
|
+
"Units": {
|
|
22
|
+
"name": {
|
|
23
|
+
"singular": "Unit",
|
|
24
|
+
"plural": "Units",
|
|
25
|
+
"display": "Units"
|
|
26
|
+
},
|
|
27
|
+
"to_anchor": 0.02,
|
|
28
|
+
"aliases": ["Units"]
|
|
29
|
+
},
|
|
30
|
+
"%EMA": {
|
|
31
|
+
"name": {
|
|
32
|
+
"singular": "%EMA",
|
|
33
|
+
"plural": "%EMA",
|
|
34
|
+
"display": "%EMA"
|
|
35
|
+
},
|
|
36
|
+
"to_anchor": 1,
|
|
37
|
+
"aliases": ["%EMA"]
|
|
38
|
+
},
|
|
39
|
+
"%": {
|
|
40
|
+
"name": {
|
|
41
|
+
"singular": "%",
|
|
42
|
+
"plural": "%",
|
|
43
|
+
"display": "%"
|
|
44
|
+
},
|
|
45
|
+
"to_anchor": 1,
|
|
46
|
+
"aliases": ["%", "%%", "% by vol"]
|
|
47
|
+
},
|
|
48
|
+
"ppm": {
|
|
49
|
+
"name": {
|
|
50
|
+
"singular": "ppm",
|
|
51
|
+
"plural": "ppm",
|
|
52
|
+
"display": "ppm"
|
|
53
|
+
},
|
|
54
|
+
"to_anchor": 0.0001,
|
|
55
|
+
"aliases": ["ppm"]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"imperial": {
|
|
59
|
+
"Units (0-10000u)": {
|
|
60
|
+
"name": {
|
|
61
|
+
"singular": "Unit (0-10000u)",
|
|
62
|
+
"plural": "Units (0-10000u)",
|
|
63
|
+
"display": "Units (0-10000u)"
|
|
64
|
+
},
|
|
65
|
+
"to_anchor": 0.01,
|
|
66
|
+
"aliases": ["Units (0-10000u)"]
|
|
67
|
+
},
|
|
68
|
+
"Units (0-5000u)": {
|
|
69
|
+
"name": {
|
|
70
|
+
"singular": "Unit (0-5000u)",
|
|
71
|
+
"plural": "Units (0-5000u)",
|
|
72
|
+
"display": "Units (0-5000u)"
|
|
73
|
+
},
|
|
74
|
+
"to_anchor": 0.02,
|
|
75
|
+
"aliases": ["Units (0-5000u)"]
|
|
76
|
+
},
|
|
77
|
+
"Units": {
|
|
78
|
+
"name": {
|
|
79
|
+
"singular": "Unit",
|
|
80
|
+
"plural": "Units",
|
|
81
|
+
"display": "Units"
|
|
82
|
+
},
|
|
83
|
+
"to_anchor": 0.02,
|
|
84
|
+
"aliases": ["Units"]
|
|
85
|
+
},
|
|
86
|
+
"%EMA": {
|
|
87
|
+
"name": {
|
|
88
|
+
"singular": "%EMA",
|
|
89
|
+
"plural": "%EMA",
|
|
90
|
+
"display": "%EMA"
|
|
91
|
+
},
|
|
92
|
+
"to_anchor": 1,
|
|
93
|
+
"aliases": ["%EMA"]
|
|
94
|
+
},
|
|
95
|
+
"%": {
|
|
96
|
+
"name": {
|
|
97
|
+
"singular": "%",
|
|
98
|
+
"plural": "%",
|
|
99
|
+
"display": "%"
|
|
100
|
+
},
|
|
101
|
+
"to_anchor": 1,
|
|
102
|
+
"aliases": ["%", "%%", "% by vol"]
|
|
103
|
+
},
|
|
104
|
+
"ppm": {
|
|
105
|
+
"name": {
|
|
106
|
+
"singular": "ppm",
|
|
107
|
+
"plural": "ppm",
|
|
108
|
+
"display": "ppm"
|
|
109
|
+
},
|
|
110
|
+
"to_anchor": 0.0001,
|
|
111
|
+
"aliases": ["ppm"]
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"_anchors": {
|
|
115
|
+
"metric": {
|
|
116
|
+
"unit": "%EMA",
|
|
117
|
+
"ratio": 1
|
|
118
|
+
},
|
|
119
|
+
"imperial": {
|
|
120
|
+
"unit": "%EMA",
|
|
121
|
+
"ratio": 1
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metric": {
|
|
3
|
+
"m3/day": {
|
|
4
|
+
"name": {
|
|
5
|
+
"singular": "Cubic meter per day",
|
|
6
|
+
"plural": "Cubic meters per day",
|
|
7
|
+
"display": "m³/day"
|
|
8
|
+
},
|
|
9
|
+
"to_anchor": 1,
|
|
10
|
+
"aliases": ["m3/day"]
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"imperial": {
|
|
14
|
+
"Mscf/day": {
|
|
15
|
+
"name": {
|
|
16
|
+
"singular": "Thousand standard cubic foot per day",
|
|
17
|
+
"plural": "Thousand standard cubic feet per day",
|
|
18
|
+
"display": "Mscf/day"
|
|
19
|
+
},
|
|
20
|
+
"to_anchor": 1,
|
|
21
|
+
"aliases": ["Mscf/day"]
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"_anchors": {
|
|
25
|
+
"metric": {
|
|
26
|
+
"unit": "m3/day",
|
|
27
|
+
"ratio": 0.035314666721488586
|
|
28
|
+
},
|
|
29
|
+
"imperial": {
|
|
30
|
+
"unit": "Mscf/day",
|
|
31
|
+
"ratio": 28.316846592
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|