@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.
Files changed (54) hide show
  1. package/definitions/acousticSlowness.json +34 -0
  2. package/definitions/angle.json +106 -0
  3. package/definitions/anglePerLength.json +52 -0
  4. package/definitions/angularVelocity.json +87 -0
  5. package/definitions/area.json +106 -0
  6. package/definitions/concentration.json +34 -0
  7. package/definitions/current.json +52 -0
  8. package/definitions/density.json +160 -0
  9. package/definitions/digital.json +106 -0
  10. package/definitions/each.json +20 -0
  11. package/definitions/energy.json +61 -0
  12. package/definitions/force.json +106 -0
  13. package/definitions/gammaRadiation.json +34 -0
  14. package/definitions/gasConcentration.json +124 -0
  15. package/definitions/gasFlowRate.json +34 -0
  16. package/definitions/gasVolume.json +250 -0
  17. package/definitions/gravity.json +43 -0
  18. package/definitions/gravityRMS.json +34 -0
  19. package/definitions/inversePressure.json +61 -0
  20. package/definitions/length.json +97 -0
  21. package/definitions/lengthPerAngle.json +43 -0
  22. package/definitions/mass.json +115 -0
  23. package/definitions/massFlowRate.json +205 -0
  24. package/definitions/mpl.json +43 -0
  25. package/definitions/partsPer.json +47 -0
  26. package/definitions/permiability.json +34 -0
  27. package/definitions/porosity.json +43 -0
  28. package/definitions/power.json +43 -0
  29. package/definitions/pressure.json +142 -0
  30. package/definitions/pressureGradient.json +43 -0
  31. package/definitions/proportion.json +52 -0
  32. package/definitions/resistivity.json +34 -0
  33. package/definitions/revolutionPerVolume.json +34 -0
  34. package/definitions/speed.json +97 -0
  35. package/definitions/spontaneousPotential.json +34 -0
  36. package/definitions/strokesRate.json +70 -0
  37. package/definitions/surveyLength.json +43 -0
  38. package/definitions/temperature.json +44 -0
  39. package/definitions/time.json +100 -0
  40. package/definitions/torque.json +61 -0
  41. package/definitions/unitBucketMapping.json +404 -0
  42. package/definitions/unitless.json +34 -0
  43. package/definitions/viscosity.json +28 -0
  44. package/definitions/voltage.json +70 -0
  45. package/definitions/volume.json +241 -0
  46. package/definitions/volumeConcentration.json +34 -0
  47. package/definitions/volumeFlowRate.json +385 -0
  48. package/dist/index.cjs +223 -0
  49. package/dist/index.cjs.map +1 -0
  50. package/dist/index.d.cts +58 -0
  51. package/dist/index.d.ts +58 -0
  52. package/dist/index.js +172 -0
  53. package/dist/index.js.map +1 -0
  54. package/package.json +42 -0
@@ -0,0 +1,205 @@
1
+ {
2
+ "metric": {
3
+ "mcg/s": {
4
+ "name": {
5
+ "singular": "Microgram per second",
6
+ "plural": "Micrograms per second",
7
+ "display": "mcg/s"
8
+ },
9
+ "to_anchor": 0.000001,
10
+ "aliases": ["mcg/s"]
11
+ },
12
+ "mcg/min": {
13
+ "name": {
14
+ "singular": "Microgram per minute",
15
+ "plural": "Micrograms per minute",
16
+ "display": "mcg/min"
17
+ },
18
+ "to_anchor": 1.6666666666666667e-8,
19
+ "aliases": ["mcg/min"]
20
+ },
21
+ "mcg/h": {
22
+ "name": {
23
+ "singular": "Microgram per hour",
24
+ "plural": "Micrograms per hour",
25
+ "display": "mcg/h"
26
+ },
27
+ "to_anchor": 2.7777777777777777e-10,
28
+ "aliases": ["mcg/h"]
29
+ },
30
+ "mg/s": {
31
+ "name": {
32
+ "singular": "Milligram per second",
33
+ "plural": "Milligrams per second",
34
+ "display": "mg/s"
35
+ },
36
+ "to_anchor": 0.001,
37
+ "aliases": ["mg/s"]
38
+ },
39
+ "mg/min": {
40
+ "name": {
41
+ "singular": "Milligram per minute",
42
+ "plural": "Milligrams per minute",
43
+ "display": "mg/min"
44
+ },
45
+ "to_anchor": 0.000016666666666666667,
46
+ "aliases": ["mg/min"]
47
+ },
48
+ "mg/h": {
49
+ "name": {
50
+ "singular": "Milligram per hour",
51
+ "plural": "Milligrams per hour",
52
+ "display": "mg/h"
53
+ },
54
+ "to_anchor": 2.7777777777777776e-7,
55
+ "aliases": ["mg/h"]
56
+ },
57
+ "g/s": {
58
+ "name": {
59
+ "singular": "Gram per second",
60
+ "plural": "Grams per second",
61
+ "display": "g/s"
62
+ },
63
+ "to_anchor": 1,
64
+ "aliases": ["g/s"]
65
+ },
66
+ "g/min": {
67
+ "name": {
68
+ "singular": "Gram per minute",
69
+ "plural": "Grams per minute",
70
+ "display": "g/min"
71
+ },
72
+ "to_anchor": 0.016666666666666666,
73
+ "aliases": ["g/min"]
74
+ },
75
+ "g/h": {
76
+ "name": {
77
+ "singular": "Gram per hour",
78
+ "plural": "Grams per hour",
79
+ "display": "g/h"
80
+ },
81
+ "to_anchor": 0.0002777777777777778,
82
+ "aliases": ["g/h"]
83
+ },
84
+ "kg/s": {
85
+ "name": {
86
+ "singular": "Kilogram per second",
87
+ "plural": "Kilograms per second",
88
+ "display": "kg/s"
89
+ },
90
+ "to_anchor": 1000,
91
+ "aliases": ["kg/s"]
92
+ },
93
+ "kg/min": {
94
+ "name": {
95
+ "singular": "Kilogram per minute",
96
+ "plural": "Kilograms per minute",
97
+ "display": "kg/min"
98
+ },
99
+ "to_anchor": 16.666666666666668,
100
+ "aliases": ["kg/min"]
101
+ },
102
+ "kg/h": {
103
+ "name": {
104
+ "singular": "Kilogram per hour",
105
+ "plural": "Kilograms per hour",
106
+ "display": "kg/h"
107
+ },
108
+ "to_anchor": 0.2777777777777778,
109
+ "aliases": ["kg/h"]
110
+ },
111
+ "ton/s": {
112
+ "name": {
113
+ "singular": "Ton per second",
114
+ "plural": "Tons per second",
115
+ "display": "t/s"
116
+ },
117
+ "to_anchor": 1000000,
118
+ "aliases": ["ton/s"]
119
+ },
120
+ "ton/min": {
121
+ "name": {
122
+ "singular": "Ton per minute",
123
+ "plural": "Tons per minute",
124
+ "display": "t/min"
125
+ },
126
+ "to_anchor": 16666.666666666668,
127
+ "aliases": ["ton/min"]
128
+ },
129
+ "ton/h": {
130
+ "name": {
131
+ "singular": "Ton per hour",
132
+ "plural": "Tons per hour",
133
+ "display": "t/h"
134
+ },
135
+ "to_anchor": 277.77777777777777,
136
+ "aliases": ["ton/h"]
137
+ }
138
+ },
139
+ "imperial": {
140
+ "oz/s": {
141
+ "name": {
142
+ "singular": "Ounce per second",
143
+ "plural": "Ounces per second",
144
+ "display": "oz/s"
145
+ },
146
+ "to_anchor": 0.0625,
147
+ "aliases": ["oz/s"]
148
+ },
149
+ "oz/min": {
150
+ "name": {
151
+ "singular": "Ounce per minute",
152
+ "plural": "Ounces per minute",
153
+ "display": "oz/min"
154
+ },
155
+ "to_anchor": 0.0010416666666666667,
156
+ "aliases": ["oz/min"]
157
+ },
158
+ "oz/h": {
159
+ "name": {
160
+ "singular": "Ounce per hour",
161
+ "plural": "Ounces per hour",
162
+ "display": "oz/h"
163
+ },
164
+ "to_anchor": 0.00001736111111111111,
165
+ "aliases": ["oz/h"]
166
+ },
167
+ "lb/s": {
168
+ "name": {
169
+ "singular": "Pound per second",
170
+ "plural": "Pounds per second",
171
+ "display": "lb/s"
172
+ },
173
+ "to_anchor": 1,
174
+ "aliases": ["lb/s"]
175
+ },
176
+ "lb/min": {
177
+ "name": {
178
+ "singular": "Pound per minute",
179
+ "plural": "Pounds per minute",
180
+ "display": "lb/min"
181
+ },
182
+ "to_anchor": 0.016666666666666666,
183
+ "aliases": ["lb/min"]
184
+ },
185
+ "lb/h": {
186
+ "name": {
187
+ "singular": "Pound per hour",
188
+ "plural": "Pounds per hour",
189
+ "display": "lb/h"
190
+ },
191
+ "to_anchor": 0.0002777777777777778,
192
+ "aliases": ["lb/h"]
193
+ }
194
+ },
195
+ "_anchors": {
196
+ "metric": {
197
+ "unit": "g/s",
198
+ "ratio": 0.0022046244201837776
199
+ },
200
+ "imperial": {
201
+ "unit": "lb/s",
202
+ "ratio": 453.592
203
+ }
204
+ }
205
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "metric": {
3
+ "kg-m": {
4
+ "name": {
5
+ "singular": "Kilogram per Meter",
6
+ "plural": "Kilograms per Meter",
7
+ "display": "kg/m"
8
+ },
9
+ "to_anchor": 1,
10
+ "aliases": ["kg-m"]
11
+ }
12
+ },
13
+ "imperial": {
14
+ "lb-ft": {
15
+ "name": {
16
+ "singular": "Pound per Foot",
17
+ "plural": "Pounds per Foot",
18
+ "display": "lb/ft"
19
+ },
20
+ "to_anchor": 1,
21
+ "aliases": ["lb-ft"]
22
+ },
23
+ "klb-ft": {
24
+ "name": {
25
+ "singular": "Kilopound per Foot",
26
+ "plural": "Kilopounds per Foot",
27
+ "display": "klb/ft"
28
+ },
29
+ "to_anchor": 1000,
30
+ "aliases": ["klb-ft"]
31
+ }
32
+ },
33
+ "_anchors": {
34
+ "metric": {
35
+ "unit": "kg-m",
36
+ "ratio": 0.6719707558327062
37
+ },
38
+ "imperial": {
39
+ "unit": "lb-ft",
40
+ "ratio": 1.48816
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "metric": {
3
+ "ppm": {
4
+ "name": {
5
+ "singular": "Part-per Million",
6
+ "plural": "Parts-per Million",
7
+ "display": "ppm"
8
+ },
9
+ "to_anchor": 1,
10
+ "aliases": ["ppm"]
11
+ },
12
+ "ppb": {
13
+ "name": {
14
+ "singular": "Part-per Billion",
15
+ "plural": "Parts-per Billion",
16
+ "display": "ppb"
17
+ },
18
+ "to_anchor": 0.001,
19
+ "aliases": ["ppb"]
20
+ },
21
+ "ppt": {
22
+ "name": {
23
+ "singular": "Part-per Trillion",
24
+ "plural": "Parts-per Trillion",
25
+ "display": "ppt"
26
+ },
27
+ "to_anchor": 0.000001,
28
+ "aliases": ["ppt"]
29
+ },
30
+ "ppq": {
31
+ "name": {
32
+ "singular": "Part-per Quadrillion",
33
+ "plural": "Parts-per Quadrillion",
34
+ "display": "ppq"
35
+ },
36
+ "to_anchor": 0.000000001,
37
+ "aliases": ["ppq"]
38
+ }
39
+ },
40
+ "imperial": {},
41
+ "_anchors": {
42
+ "metric": {
43
+ "unit": "ppm",
44
+ "ratio": 0.000001
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "metric": {
3
+ "md": {
4
+ "name": {
5
+ "singular": "millidarcy",
6
+ "plural": "millidarcy",
7
+ "display": "md"
8
+ },
9
+ "to_anchor": 1,
10
+ "aliases": ["md"]
11
+ }
12
+ },
13
+ "imperial": {
14
+ "md": {
15
+ "name": {
16
+ "singular": "millidarcy",
17
+ "plural": "millidarcy",
18
+ "display": "md"
19
+ },
20
+ "to_anchor": 1,
21
+ "aliases": ["md"]
22
+ }
23
+ },
24
+ "_anchors": {
25
+ "metric": {
26
+ "unit": "md",
27
+ "ratio": 1
28
+ },
29
+ "imperial": {
30
+ "unit": "md",
31
+ "ratio": 1
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "metric": {
3
+ "v/v": {
4
+ "name": {
5
+ "singular": "v/v",
6
+ "plural": "v/v",
7
+ "display": "v/v"
8
+ },
9
+ "to_anchor": 100,
10
+ "aliases": ["v/v"]
11
+ },
12
+ "pu": {
13
+ "name": {
14
+ "singular": "pu",
15
+ "plural": "pu",
16
+ "display": "pu"
17
+ },
18
+ "to_anchor": 1,
19
+ "aliases": ["pu"]
20
+ }
21
+ },
22
+ "imperial": {
23
+ "pu": {
24
+ "name": {
25
+ "singular": "pu",
26
+ "plural": "pu",
27
+ "display": "pu"
28
+ },
29
+ "to_anchor": 1,
30
+ "aliases": ["pu"]
31
+ }
32
+ },
33
+ "_anchors": {
34
+ "metric": {
35
+ "unit": "pu",
36
+ "ratio": 1
37
+ },
38
+ "imperial": {
39
+ "unit": "pu",
40
+ "ratio": 1
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "metric": {
3
+ "mhp": {
4
+ "name": {
5
+ "singular": "metric horsepower",
6
+ "plural": "metric horsepower",
7
+ "display": "mhp"
8
+ },
9
+ "to_anchor": 1,
10
+ "aliases": ["mhp"]
11
+ },
12
+ "watt": {
13
+ "name": {
14
+ "singular": "watt",
15
+ "plural": "watts",
16
+ "display": "W"
17
+ },
18
+ "to_anchor": 0.0013596211551613257,
19
+ "aliases": ["watt"]
20
+ }
21
+ },
22
+ "imperial": {
23
+ "hp": {
24
+ "name": {
25
+ "singular": "horsepower",
26
+ "plural": "horsepower",
27
+ "display": "hp"
28
+ },
29
+ "to_anchor": 1,
30
+ "aliases": ["hp"]
31
+ }
32
+ },
33
+ "_anchors": {
34
+ "metric": {
35
+ "unit": "mhp",
36
+ "ratio": 0.9863
37
+ },
38
+ "imperial": {
39
+ "unit": "hp",
40
+ "ratio": 1.0138902970698571
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,142 @@
1
+ {
2
+ "metric": {
3
+ "Pa": {
4
+ "name": {
5
+ "singular": "pascal",
6
+ "plural": "pascals",
7
+ "display": "Pa"
8
+ },
9
+ "to_anchor": 0.001,
10
+ "aliases": ["Pa"]
11
+ },
12
+ "kPa": {
13
+ "name": {
14
+ "singular": "kilopascal",
15
+ "plural": "kilopascals",
16
+ "display": "kPa"
17
+ },
18
+ "to_anchor": 1,
19
+ "aliases": ["kPa"]
20
+ },
21
+ "kPaAdjusted": {
22
+ "name": {
23
+ "singular": "kilopascal adjusted",
24
+ "plural": "kilopascals adjusted",
25
+ "display": "adjusted kPa"
26
+ },
27
+ "to_anchor": 0.35,
28
+ "aliases": ["kPaAdjusted", "kPaadjusted"]
29
+ },
30
+ "MPa": {
31
+ "name": {
32
+ "singular": "megapascal",
33
+ "plural": "megapascals",
34
+ "display": "MPa"
35
+ },
36
+ "to_anchor": 1000,
37
+ "aliases": ["MPa"]
38
+ },
39
+ "hPa": {
40
+ "name": {
41
+ "singular": "hectopascal",
42
+ "plural": "hectopascals",
43
+ "display": "hPa"
44
+ },
45
+ "to_anchor": 0.1,
46
+ "aliases": ["hPa"]
47
+ },
48
+ "bar": {
49
+ "name": {
50
+ "singular": "bar",
51
+ "plural": "bar",
52
+ "display": "bar"
53
+ },
54
+ "to_anchor": 100,
55
+ "aliases": ["bar"]
56
+ },
57
+ "torr": {
58
+ "name": {
59
+ "singular": "torr",
60
+ "plural": "torr",
61
+ "display": "torr"
62
+ },
63
+ "to_anchor": 0.13332236842105263,
64
+ "aliases": ["torr"]
65
+ }
66
+ },
67
+ "imperial": {
68
+ "psi": {
69
+ "name": {
70
+ "singular": "pound per square inch",
71
+ "plural": "pounds per square inch",
72
+ "display": "psi"
73
+ },
74
+ "to_anchor": 0.001,
75
+ "aliases": ["psi", "PSI"]
76
+ },
77
+ "psiAdjusted": {
78
+ "name": {
79
+ "singular": "adjusted pound per square inch",
80
+ "plural": "adjusted pounds per square inch",
81
+ "display": "adjusted psi"
82
+ },
83
+ "to_anchor": 0.00035,
84
+ "aliases": ["psiAdjusted"]
85
+ },
86
+ "ksi": {
87
+ "name": {
88
+ "singular": "kilopound per square inch",
89
+ "plural": "kilopounds per square inch",
90
+ "display": "ksi"
91
+ },
92
+ "to_anchor": 1,
93
+ "aliases": ["ksi", "kpsi", "KPSI"]
94
+ },
95
+ "ksiAdjusted": {
96
+ "name": {
97
+ "singular": "adjusted kilopound per square inch",
98
+ "plural": "adjusted kilopounds per square inch",
99
+ "display": "adjusted ksi"
100
+ },
101
+ "to_anchor": 0.35,
102
+ "aliases": ["ksiAdjusted"]
103
+ },
104
+ "psf": {
105
+ "name": {
106
+ "singular": "pound per square foot",
107
+ "plural": "pounds per square foot",
108
+ "display": "lbf/ft²"
109
+ },
110
+ "to_anchor": 0.000006944444444444444,
111
+ "aliases": ["psf"]
112
+ },
113
+ "dsf": {
114
+ "name": {
115
+ "singular": "decapound per square foot",
116
+ "plural": "pound per deca square foot",
117
+ "display": "lbf/(10·ft²)"
118
+ },
119
+ "to_anchor": 6.944444444444444e-7,
120
+ "aliases": ["dsf"]
121
+ },
122
+ "hsf": {
123
+ "name": {
124
+ "singular": "hectopound per square foot",
125
+ "plural": "pound per hecto square foot",
126
+ "display": "lbf/(100·ft²)"
127
+ },
128
+ "to_anchor": 6.944444444444444e-8,
129
+ "aliases": ["hsf", "lbf/100 ft2", "lbf/100ft2", "lbf/(100·ft²)", "lb/100ft2"]
130
+ }
131
+ },
132
+ "_anchors": {
133
+ "metric": {
134
+ "unit": "kPa",
135
+ "ratio": 0.00014503768078
136
+ },
137
+ "imperial": {
138
+ "unit": "ksi",
139
+ "ratio": 6894.76000045014
140
+ }
141
+ }
142
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "metric": {
3
+ "kPa/m": {
4
+ "name": {
5
+ "singular": "kilopascal per meter",
6
+ "plural": "kilopascals per meter",
7
+ "display": "kPa/m"
8
+ },
9
+ "to_anchor": 1,
10
+ "aliases": ["kPa/m"]
11
+ },
12
+ "Pa/m": {
13
+ "name": {
14
+ "singular": "Pascal per meter",
15
+ "plural": "Pascals per meter",
16
+ "display": "Pa/m"
17
+ },
18
+ "to_anchor": 0.001,
19
+ "aliases": ["Pa/m"]
20
+ }
21
+ },
22
+ "imperial": {
23
+ "psi/ft": {
24
+ "name": {
25
+ "singular": "pressure per unit",
26
+ "plural": "pressure per unit",
27
+ "display": "psi/ft"
28
+ },
29
+ "to_anchor": 1,
30
+ "aliases": ["psi/ft"]
31
+ }
32
+ },
33
+ "_anchors": {
34
+ "metric": {
35
+ "unit": "kPa/m",
36
+ "ratio": 0.0442075
37
+ },
38
+ "imperial": {
39
+ "unit": "psi/ft",
40
+ "ratio": 22.62059605270599
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "metric": {
3
+ "%": {
4
+ "name": {
5
+ "singular": "%",
6
+ "plural": "%",
7
+ "display": "%"
8
+ },
9
+ "to_anchor": 1,
10
+ "aliases": ["%", "percent", "flow_percent"]
11
+ },
12
+ "Fraction": {
13
+ "name": {
14
+ "singular": "Fraction",
15
+ "plural": "Fraction",
16
+ "display": "Fraction (0-1)"
17
+ },
18
+ "to_anchor": 100,
19
+ "aliases": ["Fraction", "0-1"]
20
+ }
21
+ },
22
+ "imperial": {
23
+ "%": {
24
+ "name": {
25
+ "singular": "%",
26
+ "plural": "%",
27
+ "display": "%"
28
+ },
29
+ "to_anchor": 1,
30
+ "aliases": ["%", "percent", "flow_percent"]
31
+ },
32
+ "Fraction": {
33
+ "name": {
34
+ "singular": "Fraction",
35
+ "plural": "Fraction",
36
+ "display": "Fraction (0-1)"
37
+ },
38
+ "to_anchor": 100,
39
+ "aliases": ["Fraction", "0-1"]
40
+ }
41
+ },
42
+ "_anchors": {
43
+ "metric": {
44
+ "unit": "%",
45
+ "ratio": 1
46
+ },
47
+ "imperial": {
48
+ "unit": "%",
49
+ "ratio": 1
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "metric": {
3
+ "ohmm": {
4
+ "name": {
5
+ "singular": "ohm-meter",
6
+ "plural": "ohm-meter",
7
+ "display": "ohmm"
8
+ },
9
+ "to_anchor": 1,
10
+ "aliases": ["ohmm", "ohm.m", "ohm-"]
11
+ }
12
+ },
13
+ "imperial": {
14
+ "ohmm": {
15
+ "name": {
16
+ "singular": "ohm-meter",
17
+ "plural": "ohm-meter",
18
+ "display": "ohmm"
19
+ },
20
+ "to_anchor": 1,
21
+ "aliases": ["ohmm", "ohm.m", "ohm-"]
22
+ }
23
+ },
24
+ "_anchors": {
25
+ "metric": {
26
+ "unit": "ohmm",
27
+ "ratio": 1
28
+ },
29
+ "imperial": {
30
+ "unit": "ohmm",
31
+ "ratio": 1
32
+ }
33
+ }
34
+ }