@abhinavmir/corona
v1.0.8
Published
<a href="https://imgbb.com/"><img src="https://i.ibb.co/SP0zjFQ/cjs.png" alt="cjs" border="0"></a>
Downloads
40
Readme
Introduction
The Module fetches data from JHU's Database and returns it as a Promise.
Functions
To import
var coronajs = require("@abhinavmir/corona")
Fetch All Data
coronajs.baseFetch()
Fetch Latest Worldwide data
coronajs.latestFetch()
Fetch Data By Country Name
coronajs.fetchCountryByCode(countryCode)
Note: The Country Code is by ISO 3166-1 alpha-2 standards
Fetch Data by Country Code
coronajs.fetchCountryByName(countryName)
Acknowledgements
The module uses the following API(s): https://coronavirus-tracker-api.herokuapp.com/#/