I have also separated the part that fetches and formats the data into a library that you can use: https://www.npmjs.com/package/@evrimfeyyaz/covid-19-api
I have also separated the part that fetches and formats the data into a library that you can use: https://www.npmjs.com/package/@evrimfeyyaz/covid-19-api