Small library that extracts the average carbon intensity from json requests from the Electricity Map API.
This project reads the api responses and consolidates the results in a single lightweight file that is exported.
24kb / 5kb gzip
- Install the library using
npm install co2-dataor
yarn add co2-data
- Import the function you want to use: