thai-covid-report
v1.0.3
Published
A simple command to get the Covid situation report from moph.go.th
Downloads
1
Maintainers
Readme
Thai-Covid-Report (EN/TH)
This project is to make developer have an easier access to get the covid situation update data from https://covid19.ddc.moph.go.th/
Installation
You can install this package by using npm
npm install thai-covid-report
Sample Usage
All of the example are provided inside the Examples folder and wiki page of this repo, but here is the sample snippet of getting the amount of people who get infected today.
getTodayInfected() example
//Import the package
const thaiCovid = require('thai-covid-report')
//Use the command to get amount of people who get infected on today
thaiCovid
.getTodayInfected()
.then(res =>
{
//The res type is integer
const newInfected = res
console.log('Today confirmed case: ' + newInfected)
}
)
Full Documentation
The full documentation and examples snippet for this project is available inside the wiki page.
Credits
This package will not be possible without the public API from https://covid19.ddc.moph.go.th/ and Axios
License
This package uses MIT license.