@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,34 @@
1
+ {
2
+ "metric": {
3
+ "us/m": {
4
+ "name": {
5
+ "singular": "us/m",
6
+ "plural": "us/m",
7
+ "display": "us/m"
8
+ },
9
+ "to_anchor": 1,
10
+ "aliases": ["us/m"]
11
+ }
12
+ },
13
+ "imperial": {
14
+ "us/ft": {
15
+ "name": {
16
+ "singular": "us/ft",
17
+ "plural": "us/ft",
18
+ "display": "us/ft"
19
+ },
20
+ "to_anchor": 1,
21
+ "aliases": ["us/f", "us/ft"]
22
+ }
23
+ },
24
+ "_anchors": {
25
+ "metric": {
26
+ "unit": "us/m",
27
+ "ratio": 0.3047999902464003
28
+ },
29
+ "imperial": {
30
+ "unit": "us/ft",
31
+ "ratio": 3.28084
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,106 @@
1
+ {
2
+ "metric": {
3
+ "rad": {
4
+ "name": {
5
+ "singular": "radian",
6
+ "plural": "radians",
7
+ "display": "rad"
8
+ },
9
+ "to_anchor": 57.29577951308232,
10
+ "aliases": ["rad"]
11
+ },
12
+ "deg": {
13
+ "name": {
14
+ "singular": "degree",
15
+ "plural": "degrees",
16
+ "display": "deg"
17
+ },
18
+ "to_anchor": 1,
19
+ "aliases": ["deg", "dega", "degrees"]
20
+ },
21
+ "grad": {
22
+ "name": {
23
+ "singular": "gradian",
24
+ "plural": "gradians",
25
+ "display": "grad"
26
+ },
27
+ "to_anchor": 0.9,
28
+ "aliases": ["grad"]
29
+ },
30
+ "arcmin": {
31
+ "name": {
32
+ "singular": "arcminute",
33
+ "plural": "arcminutes",
34
+ "display": "arcmin"
35
+ },
36
+ "to_anchor": 0.016666666666666666,
37
+ "aliases": ["arcmin"]
38
+ },
39
+ "arcsec": {
40
+ "name": {
41
+ "singular": "arcsecond",
42
+ "plural": "arcseconds",
43
+ "display": "arcsec"
44
+ },
45
+ "to_anchor": 0.0002777777777777778,
46
+ "aliases": ["arcsec"]
47
+ }
48
+ },
49
+ "imperial": {
50
+ "rad": {
51
+ "name": {
52
+ "singular": "radian",
53
+ "plural": "radians",
54
+ "display": "rad"
55
+ },
56
+ "to_anchor": 57.29577951308232,
57
+ "aliases": ["rad"]
58
+ },
59
+ "deg": {
60
+ "name": {
61
+ "singular": "degree",
62
+ "plural": "degrees",
63
+ "display": "deg"
64
+ },
65
+ "to_anchor": 1,
66
+ "aliases": ["deg", "dega", "degrees"]
67
+ },
68
+ "grad": {
69
+ "name": {
70
+ "singular": "gradian",
71
+ "plural": "gradians",
72
+ "display": "grad"
73
+ },
74
+ "to_anchor": 0.9,
75
+ "aliases": ["grad"]
76
+ },
77
+ "arcmin": {
78
+ "name": {
79
+ "singular": "arcminute",
80
+ "plural": "arcminutes",
81
+ "display": "arcmin"
82
+ },
83
+ "to_anchor": 0.016666666666666666,
84
+ "aliases": ["arcmin"]
85
+ },
86
+ "arcsec": {
87
+ "name": {
88
+ "singular": "arcsecond",
89
+ "plural": "arcseconds",
90
+ "display": "arcsec"
91
+ },
92
+ "to_anchor": 0.0002777777777777778,
93
+ "aliases": ["arcsec"]
94
+ }
95
+ },
96
+ "_anchors": {
97
+ "metric": {
98
+ "unit": "deg",
99
+ "ratio": 1
100
+ },
101
+ "imperial": {
102
+ "unit": "deg",
103
+ "ratio": 1
104
+ }
105
+ }
106
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "metric": {
3
+ "dpm": {
4
+ "name": {
5
+ "singular": "degree per meter",
6
+ "plural": "degrees per meter",
7
+ "display": "°/m"
8
+ },
9
+ "to_anchor": 1,
10
+ "aliases": ["dpm"]
11
+ },
12
+ "dp30m": {
13
+ "name": {
14
+ "singular": "degree per 30m",
15
+ "plural": "degrees per 30m",
16
+ "display": "°/30m"
17
+ },
18
+ "to_anchor": 0.03333333333333333,
19
+ "aliases": ["dp30m"]
20
+ }
21
+ },
22
+ "imperial": {
23
+ "dpf": {
24
+ "name": {
25
+ "singular": "degree per foot",
26
+ "plural": "degrees per feet",
27
+ "display": "°/ft"
28
+ },
29
+ "to_anchor": 1,
30
+ "aliases": ["dpf"]
31
+ },
32
+ "dp100f": {
33
+ "name": {
34
+ "singular": "degree per 100 foot",
35
+ "plural": "degrees per 100 feet",
36
+ "display": "°/100ft"
37
+ },
38
+ "to_anchor": 0.01,
39
+ "aliases": ["dp100f", "deg/100ft"]
40
+ }
41
+ },
42
+ "_anchors": {
43
+ "metric": {
44
+ "unit": "dpm",
45
+ "ratio": 0.3047999902464003
46
+ },
47
+ "imperial": {
48
+ "unit": "dpf",
49
+ "ratio": 3.28084
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,87 @@
1
+ {
2
+ "metric": {
3
+ "1/s": {
4
+ "name": {
5
+ "singular": "revolution per second",
6
+ "plural": "revolutions per second",
7
+ "display": "1/s"
8
+ },
9
+ "to_anchor": 60,
10
+ "aliases": ["1/s", "Hz"]
11
+ },
12
+ "rev/s": {
13
+ "name": {
14
+ "singular": "revolution per second",
15
+ "plural": "revolutions per second",
16
+ "display": "rev/s"
17
+ },
18
+ "to_anchor": 60,
19
+ "aliases": ["rev/s", "rps"]
20
+ },
21
+ "rpm": {
22
+ "name": {
23
+ "singular": "revolution per minute",
24
+ "plural": "revolutions per minute",
25
+ "display": "rpm"
26
+ },
27
+ "to_anchor": 1,
28
+ "aliases": ["rpm", "RPM", "rev/m", "c/min"]
29
+ },
30
+ "rph": {
31
+ "name": {
32
+ "singular": "revolution per hour",
33
+ "plural": "revolutions per hour",
34
+ "display": "rph"
35
+ },
36
+ "to_anchor": 0.016666666666666666,
37
+ "aliases": ["rph", "rev/h"]
38
+ },
39
+ "radsec": {
40
+ "name": {
41
+ "singular": "radian per second",
42
+ "plural": "radians per second",
43
+ "display": "rad/sec"
44
+ },
45
+ "to_anchor": 9.549296585513721,
46
+ "aliases": ["radsec", "rad/s", "rad/sec"]
47
+ },
48
+ "dega/s": {
49
+ "name": {
50
+ "singular": "degree per second",
51
+ "plural": "degrees per second",
52
+ "display": "dega/s"
53
+ },
54
+ "to_anchor": 0.16666666666666666,
55
+ "aliases": ["dega/s"]
56
+ },
57
+ "dega/m": {
58
+ "name": {
59
+ "singular": "degree per minute",
60
+ "plural": "degrees per minute",
61
+ "display": "dega/m"
62
+ },
63
+ "to_anchor": 0.002777777777777778,
64
+ "aliases": ["dega/m"]
65
+ },
66
+ "dega/h": {
67
+ "name": {
68
+ "singular": "degree per hour",
69
+ "plural": "degrees per hour",
70
+ "display": "dega/h"
71
+ },
72
+ "to_anchor": 0.0000462962962962963,
73
+ "aliases": ["dega/h"]
74
+ }
75
+ },
76
+ "imperial": {},
77
+ "_anchors": {
78
+ "metric": {
79
+ "unit": "rpm",
80
+ "ratio": 1
81
+ },
82
+ "imperial": {
83
+ "unit": "rpm",
84
+ "ratio": 1
85
+ }
86
+ }
87
+ }
@@ -0,0 +1,106 @@
1
+ {
2
+ "metric": {
3
+ "mm2": {
4
+ "name": {
5
+ "singular": "Square Millimeter",
6
+ "plural": "Square Millimeters",
7
+ "display": "mm²"
8
+ },
9
+ "to_anchor": 0.000001,
10
+ "aliases": ["mm2"]
11
+ },
12
+ "cm2": {
13
+ "name": {
14
+ "singular": "Centimeter",
15
+ "plural": "Centimeters",
16
+ "display": "cm²"
17
+ },
18
+ "to_anchor": 0.0001,
19
+ "aliases": ["cm2"]
20
+ },
21
+ "m2": {
22
+ "name": {
23
+ "singular": "Square Meter",
24
+ "plural": "Square Meters",
25
+ "display": "m²"
26
+ },
27
+ "to_anchor": 1,
28
+ "aliases": ["m2"]
29
+ },
30
+ "ha": {
31
+ "name": {
32
+ "singular": "Hectare",
33
+ "plural": "Hectares",
34
+ "display": "ha"
35
+ },
36
+ "to_anchor": 10000,
37
+ "aliases": ["ha"]
38
+ },
39
+ "km2": {
40
+ "name": {
41
+ "singular": "Square Kilometer",
42
+ "plural": "Square Kilometers",
43
+ "display": "km²"
44
+ },
45
+ "to_anchor": 1000000,
46
+ "aliases": ["km2"]
47
+ }
48
+ },
49
+ "imperial": {
50
+ "in2": {
51
+ "name": {
52
+ "singular": "Square Inch",
53
+ "plural": "Square Inches",
54
+ "display": "in²"
55
+ },
56
+ "to_anchor": 0.006944444444444444,
57
+ "aliases": ["in2"]
58
+ },
59
+ "yd2": {
60
+ "name": {
61
+ "singular": "Square Yard",
62
+ "plural": "Square Yards",
63
+ "display": "yd²"
64
+ },
65
+ "to_anchor": 9,
66
+ "aliases": ["yd2"]
67
+ },
68
+ "ft2": {
69
+ "name": {
70
+ "singular": "Square Foot",
71
+ "plural": "Square Feet",
72
+ "display": "ft²"
73
+ },
74
+ "to_anchor": 1,
75
+ "aliases": ["ft2"]
76
+ },
77
+ "ac": {
78
+ "name": {
79
+ "singular": "Acre",
80
+ "plural": "Acres",
81
+ "display": "ac"
82
+ },
83
+ "to_anchor": 43560,
84
+ "aliases": ["ac"]
85
+ },
86
+ "mi2": {
87
+ "name": {
88
+ "singular": "Square Mile",
89
+ "plural": "Square Miles",
90
+ "display": "mi²"
91
+ },
92
+ "to_anchor": 27878400,
93
+ "aliases": ["mi2"]
94
+ }
95
+ },
96
+ "_anchors": {
97
+ "metric": {
98
+ "unit": "m2",
99
+ "ratio": 10.7639
100
+ },
101
+ "imperial": {
102
+ "unit": "ft2",
103
+ "ratio": 0.09290312990644656
104
+ }
105
+ }
106
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "metric": {
3
+ "ppm": {
4
+ "name": {
5
+ "singular": "ppm",
6
+ "plural": "ppm",
7
+ "display": "ppm"
8
+ },
9
+ "to_anchor": 1,
10
+ "aliases": ["ppm"]
11
+ }
12
+ },
13
+ "imperial": {
14
+ "ppm": {
15
+ "name": {
16
+ "singular": "ppm",
17
+ "plural": "ppm",
18
+ "display": "ppm"
19
+ },
20
+ "to_anchor": 1,
21
+ "aliases": ["ppm"]
22
+ }
23
+ },
24
+ "_anchors": {
25
+ "metric": {
26
+ "unit": "ppm",
27
+ "ratio": 1
28
+ },
29
+ "imperial": {
30
+ "unit": "ppm",
31
+ "ratio": 1
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "metric": {
3
+ "A": {
4
+ "name": {
5
+ "singular": "Ampere",
6
+ "plural": "Amperes",
7
+ "display": "A"
8
+ },
9
+ "to_anchor": 1000,
10
+ "aliases": ["A"]
11
+ },
12
+ "mA": {
13
+ "name": {
14
+ "singular": "Milliampere",
15
+ "plural": "Milliamperes",
16
+ "display": "mA"
17
+ },
18
+ "to_anchor": 1,
19
+ "aliases": ["mA"]
20
+ }
21
+ },
22
+ "imperial": {
23
+ "A": {
24
+ "name": {
25
+ "singular": "Ampere",
26
+ "plural": "Amperes",
27
+ "display": "A"
28
+ },
29
+ "to_anchor": 1000,
30
+ "aliases": ["A"]
31
+ },
32
+ "mA": {
33
+ "name": {
34
+ "singular": "Milliampere",
35
+ "plural": "Milliamperes",
36
+ "display": "mA"
37
+ },
38
+ "to_anchor": 1,
39
+ "aliases": ["mA"]
40
+ }
41
+ },
42
+ "_anchors": {
43
+ "metric": {
44
+ "unit": "mA",
45
+ "ratio": 1
46
+ },
47
+ "imperial": {
48
+ "unit": "mA",
49
+ "ratio": 1
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,160 @@
1
+ {
2
+ "metric": {
3
+ "Sg": {
4
+ "name": {
5
+ "singular": "Specific Gravity",
6
+ "plural": "Specific Gravity",
7
+ "display": "Sg"
8
+ },
9
+ "to_anchor": 1,
10
+ "aliases": ["Sg"]
11
+ },
12
+ "kg/m3": {
13
+ "name": {
14
+ "singular": "Kilogram per Cubic Meter",
15
+ "plural": "Kilograms per Cubic Meter",
16
+ "display": "kg/m³"
17
+ },
18
+ "to_anchor": 0.001,
19
+ "aliases": ["kg/m3"]
20
+ },
21
+ "kg/cm3": {
22
+ "name": {
23
+ "singular": "Kilogram per Cubic Centimeter",
24
+ "plural": "Kilograms per Cubic Centimeter",
25
+ "display": "kg/cm³"
26
+ },
27
+ "to_anchor": 1000,
28
+ "aliases": ["kg/cm3"]
29
+ },
30
+ "g/cm3": {
31
+ "name": {
32
+ "singular": "Gram per Cubic Centimeter",
33
+ "plural": "Grams per Cubic Centimeter",
34
+ "display": "g/cm³"
35
+ },
36
+ "to_anchor": 1,
37
+ "aliases": ["g/cm3", "g/c3", "g/cc"]
38
+ },
39
+ "g/l": {
40
+ "name": {
41
+ "singular": "Gram per Liter",
42
+ "plural": "Grams per Liter",
43
+ "display": "g/l"
44
+ },
45
+ "to_anchor": 0.001,
46
+ "aliases": ["g/l"]
47
+ },
48
+ "g/m3": {
49
+ "name": {
50
+ "singular": "Gram per Cubic Meter",
51
+ "plural": "Grams per Cubic Meter",
52
+ "display": "g/m3"
53
+ },
54
+ "to_anchor": 0.000001,
55
+ "aliases": ["g/m3", "gm/3", "gm/c"]
56
+ },
57
+ "kPa/m": {
58
+ "name": {
59
+ "singular": "Kilopascal per Meter",
60
+ "plural": "Kilopascals per Meter",
61
+ "display": "kPa/m"
62
+ },
63
+ "to_anchor": 0.10197162129779283,
64
+ "aliases": ["kPa/m"]
65
+ },
66
+ "mg/l": {
67
+ "name": {
68
+ "singular": "Milligram per Liter",
69
+ "plural": "Milligrams per Liter",
70
+ "display": "mg/l"
71
+ },
72
+ "to_anchor": 0.000001,
73
+ "aliases": ["mg/l", "mg/L"]
74
+ }
75
+ },
76
+ "imperial": {
77
+ "lb/gal": {
78
+ "name": {
79
+ "singular": "Pound Per Gallon",
80
+ "plural": "Pounds Per Gallon",
81
+ "display": "lb/gal"
82
+ },
83
+ "to_anchor": 1,
84
+ "aliases": ["lb/gal", "lbm/gal", "lbm/galUS", "lbs/galUS", "lbs_per_gal"]
85
+ },
86
+ "ppg": {
87
+ "name": {
88
+ "singular": "Pound Per Gallon",
89
+ "plural": "Pounds Per Gallon",
90
+ "display": "ppg"
91
+ },
92
+ "to_anchor": 1,
93
+ "aliases": ["ppg", "lbm/galUS"]
94
+ },
95
+ "lb/bbl": {
96
+ "name": {
97
+ "singular": "Pound Per Barrel",
98
+ "plural": "Pounds Per Barrel",
99
+ "display": "lb/bbl"
100
+ },
101
+ "to_anchor": 0.023809523809523808,
102
+ "aliases": ["lb/bbl", "lbm/bbl"]
103
+ },
104
+ "lb/Mgal": {
105
+ "name": {
106
+ "singular": "Pound per 1000 Gallon",
107
+ "plural": "Pounds per 1000 Gallon",
108
+ "display": "lb/Mgal"
109
+ },
110
+ "to_anchor": 0.001,
111
+ "aliases": ["lb/Mgal", "lbm/Mgal"]
112
+ },
113
+ "lb/ft3": {
114
+ "name": {
115
+ "singular": "Pound per Cubic Foot",
116
+ "plural": "Pounds per Cubic Foot",
117
+ "display": "lb/ft³"
118
+ },
119
+ "to_anchor": 0.13368055555555555,
120
+ "aliases": ["lb/ft3"]
121
+ },
122
+ "lb/in3": {
123
+ "name": {
124
+ "singular": "Pound per Cubic Inch",
125
+ "plural": "Pounds per Cubic Inch",
126
+ "display": "lb/in³"
127
+ },
128
+ "to_anchor": 231,
129
+ "aliases": ["lb/in3"]
130
+ },
131
+ "psi/ft": {
132
+ "name": {
133
+ "singular": "Pound per square inch per foot",
134
+ "plural": "Pounds per square inch per foot",
135
+ "display": "psi/ft"
136
+ },
137
+ "to_anchor": 19.25,
138
+ "aliases": ["psi/ft"]
139
+ },
140
+ "psi/1000ft": {
141
+ "name": {
142
+ "singular": "Pound per square inch per 1000 ft",
143
+ "plural": "Pounds per square inch per 1000 ft",
144
+ "display": "psi/1000ft"
145
+ },
146
+ "to_anchor": 0.01925,
147
+ "aliases": ["psi/1000ft"]
148
+ }
149
+ },
150
+ "_anchors": {
151
+ "metric": {
152
+ "unit": "Sg",
153
+ "ratio": 8.345406354526215
154
+ },
155
+ "imperial": {
156
+ "unit": "ppg",
157
+ "ratio": 0.1198264
158
+ }
159
+ }
160
+ }