@tgwf/co2 0.12.1 → 0.13.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/README.md CHANGED
@@ -4,8 +4,7 @@
4
4
 
5
5
  One day, the internet will be powered by renewable energy. Until that day comes, there’ll be a CO2 cost that comes with every byte of data that’s uploaded or downloaded. By being able to calculate these emissions, developers can be empowered to create more efficient, lower carbon apps, websites, and software.
6
6
 
7
- ## [Documentation](https://developers.thegreenwebfoundation.org/co2js/overview/)
8
- ## [Changelog](/CHANGELOG.md)
7
+ ## [Documentation](https://developers.thegreenwebfoundation.org/co2js/overview/) | [Changelog](/CHANGELOG.md) | [Roadmap](https://github.com/orgs/thegreenwebfoundation/projects/3/views/1)
9
8
 
10
9
  ## What is CO2.js?
11
10
 
@@ -102,8 +101,8 @@ We use [`np`](https://www.npmjs.com/package/np) to publish new versions of this
102
101
 
103
102
  The code for CO2.js is licensed Apache 2.0. ([What does this mean?](https://tldrlegal.com/license/apache-license-2.0-(apache-2.0)))
104
103
 
105
- The average carbon intensity data from Ember is published under the Creative Commons ShareAlike Attribution Licence ([CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)). ([What does this mean?](https://tldrlegal.com/license/creative-commons-attribution-sharealike-4.0-international-(cc-by-sa-4.0)))
104
+ The average carbon intensity data from Ember is published under the Creative Commons ShareAlike Attribution Licence ([CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)). ([What does this mean?](https://www.tldrlegal.com/license/creative-commons-attribution-share-alike-cc-sa))
106
105
 
107
- The marginal intensity data is published by the Green Web Foundation, under the Creative Commons ShareAlike Attribution Licence ([CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)). ([What does this mean?](https://tldrlegal.com/license/creative-commons-attribution-sharealike-4.0-international-(cc-by-sa-4.0)))
106
+ The marginal intensity data is published by the Green Web Foundation, under the Creative Commons ShareAlike Attribution Licence ([CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)). ([What does this mean?](https://www.tldrlegal.com/license/creative-commons-attribution-share-alike-cc-sa))
108
107
 
109
108
  See LICENCE for more.
@@ -0,0 +1,226 @@
1
+ const data = {
2
+ AFG: 120.482,
3
+ Africa: 483.78,
4
+ ALB: 23.438,
5
+ DZA: 488.393,
6
+ ASM: 687.5,
7
+ AGO: 168.594,
8
+ ATG: 657.143,
9
+ ARG: 337.533,
10
+ ARM: 222.678,
11
+ ABW: 591.398,
12
+ Asia: 531.78,
13
+ AUS: 503.179,
14
+ AUT: 157.52,
15
+ AZE: 532.902,
16
+ BHS: 698.113,
17
+ BHR: 489.924,
18
+ BGD: 581.485,
19
+ BRB: 644.86,
20
+ BLR: 415.774,
21
+ BEL: 165.363,
22
+ BLZ: 484.375,
23
+ BEN: 666.667,
24
+ BTN: 24.444,
25
+ BOL: 319.432,
26
+ BIH: 516.626,
27
+ BWA: 794.521,
28
+ BRA: 102.411,
29
+ BRN: 658.849,
30
+ BGR: 399.565,
31
+ BFA: 611.429,
32
+ BDI: 250,
33
+ CPV: 600,
34
+ KHM: 399.31,
35
+ CMR: 278.261,
36
+ CAN: 125.55,
37
+ CYM: 684.932,
38
+ CAF: 0,
39
+ TCD: 677.419,
40
+ CHL: 333.173,
41
+ CHN: 530.214,
42
+ COL: 169.309,
43
+ COM: 714.286,
44
+ COG: 398.01,
45
+ COD: 25.362,
46
+ COK: 400,
47
+ CRI: 37.213,
48
+ CIV: 390.71,
49
+ HRV: 246.459,
50
+ CUB: 574.684,
51
+ CYP: 589.354,
52
+ CZE: 415.345,
53
+ DNK: 180.709,
54
+ DJI: 666.667,
55
+ DMA: 529.412,
56
+ DOM: 540.387,
57
+ ECU: 169.384,
58
+ EGY: 485.367,
59
+ SLV: 194.226,
60
+ GNQ: 492.958,
61
+ ERI: 688.889,
62
+ EST: 464.029,
63
+ SWZ: 189.189,
64
+ ETH: 25.187,
65
+ EU: 277.35,
66
+ Europe: 298.01,
67
+ FLK: 500,
68
+ FRO: 428.571,
69
+ FJI: 292.035,
70
+ FIN: 130.977,
71
+ FRA: 84.817,
72
+ GUF: 254.717,
73
+ PYF: 471.429,
74
+ G20: 440.39,
75
+ G7: 341.23,
76
+ GAB: 397.38,
77
+ GMB: 700,
78
+ GEO: 134.831,
79
+ DEU: 385.467,
80
+ GHA: 362.942,
81
+ GRC: 343.822,
82
+ GRL: 133.333,
83
+ GRD: 714.286,
84
+ GLP: 611.765,
85
+ GUM: 670.33,
86
+ GTM: 313.019,
87
+ GIN: 208.633,
88
+ GNB: 750,
89
+ GUY: 634.146,
90
+ HTI: 606.061,
91
+ HND: 374.269,
92
+ HKG: 684.823,
93
+ HUN: 222.973,
94
+ ISL: 28.557,
95
+ IND: 632.406,
96
+ IDN: 623.281,
97
+ IRN: 493.595,
98
+ IRQ: 500.206,
99
+ IRL: 345.347,
100
+ ISR: 550.493,
101
+ ITA: 371.692,
102
+ JAM: 524.138,
103
+ JPN: 483.039,
104
+ JOR: 399.909,
105
+ KAZ: 635.574,
106
+ KEN: 99.919,
107
+ KIR: 666.667,
108
+ XKX: 766.605,
109
+ KWT: 489.61,
110
+ KGZ: 104.354,
111
+ LAO: 242.182,
112
+ "Latin America and Caribbean": 238.27,
113
+ LVA: 181.818,
114
+ LBN: 545.941,
115
+ LSO: 20,
116
+ LBR: 304.348,
117
+ LBY: 496.565,
118
+ LTU: 194.245,
119
+ LUX: 168.142,
120
+ MAC: 491.525,
121
+ MDG: 483.254,
122
+ MWI: 133.803,
123
+ MYS: 543.737,
124
+ MDV: 651.515,
125
+ MLI: 466.077,
126
+ MLT: 442.478,
127
+ MTQ: 698.63,
128
+ MRT: 526.596,
129
+ MUS: 611.111,
130
+ MEX: 421.402,
131
+ "Middle East": 514.89,
132
+ MDA: 685.874,
133
+ MNG: 749.656,
134
+ MNE: 399.381,
135
+ MSR: 1000,
136
+ MAR: 610.412,
137
+ MOZ: 125.063,
138
+ MMR: 348.837,
139
+ NAM: 63.694,
140
+ NRU: 750,
141
+ NPL: 24.51,
142
+ NLD: 354.988,
143
+ NCL: 610.119,
144
+ NZL: 98.639,
145
+ NIC: 354.212,
146
+ NER: 622.222,
147
+ NGA: 368.421,
148
+ "North America": 336.4,
149
+ PRK: 157.785,
150
+ MKD: 529.328,
151
+ NOR: 28.818,
152
+ Oceania: 446.65,
153
+ OECD: 338.75,
154
+ OMN: 488.272,
155
+ PAK: 343.366,
156
+ PSE: 465.116,
157
+ PAN: 193.923,
158
+ PNG: 526.749,
159
+ PRY: 25.487,
160
+ PER: 254.521,
161
+ POL: 634.579,
162
+ PRT: 234.029,
163
+ PRI: 681.469,
164
+ QAT: 489.867,
165
+ REU: 519.031,
166
+ ROU: 264.121,
167
+ RUS: 367.189,
168
+ RWA: 294.118,
169
+ KNA: 681.818,
170
+ LCA: 685.714,
171
+ SPM: 800,
172
+ VCT: 500,
173
+ WSM: 470.588,
174
+ STP: 600,
175
+ SAU: 571.336,
176
+ SEN: 502.674,
177
+ SRB: 569.375,
178
+ SYC: 615.385,
179
+ SLE: 47.619,
180
+ SGP: 489.234,
181
+ SVK: 140.666,
182
+ SVN: 237.378,
183
+ SLB: 727.273,
184
+ SOM: 634.146,
185
+ ZAF: 709.002,
186
+ KOR: 435.689,
187
+ SSD: 684.211,
188
+ ESP: 217.373,
189
+ LKA: 479.829,
190
+ SDN: 242.917,
191
+ SUR: 356.436,
192
+ SWE: 45.084,
193
+ CHE: 45.622,
194
+ SYR: 540.573,
195
+ TWN: 561.431,
196
+ TJK: 84.136,
197
+ TZA: 361.077,
198
+ THA: 503.07,
199
+ PHL: 582.365,
200
+ TGO: 507.937,
201
+ TON: 625,
202
+ TTO: 520.046,
203
+ TUN: 469.428,
204
+ TUR: 413.628,
205
+ TKM: 544.393,
206
+ TCA: 703.704,
207
+ UGA: 52.273,
208
+ UKR: 206.539,
209
+ ARE: 461.845,
210
+ GBR: 257.379,
211
+ USA: 367.768,
212
+ URY: 116.168,
213
+ UZB: 506.164,
214
+ VUT: 571.429,
215
+ VEN: 189.446,
216
+ VNM: 376.828,
217
+ VGB: 714.286,
218
+ VIR: 685.714,
219
+ World: 435.99,
220
+ YEM: 528.409,
221
+ ZMB: 84.698,
222
+ ZWE: 393.035,
223
+ };
224
+ const type = "average";
225
+ export { data, type };
226
+ export default { data, type };