thegreenwebfoundation / co2.js

An npm module for accessing the green web API, and estimating the carbon emissions from using digital services
Other
389 stars 49 forks source link

Format output js for the data files #104

Closed mrchrisadams closed 1 year ago

fershad commented 2 years ago

To make it easier to read and share the marginal/average intensity data, we should provide a formatted version of the JS and JSON files generated as part of #102 and #100.

A minified version should also be retained to facilitate importing the data into CO2.js at a later time.

fershad commented 2 years ago

This can be done with Prettier. Leaving this gist as a reference https://gist.github.com/Mohamed3on/840b34ecb7e9abf06ace035183b7f1fc