const c = require("coronavirus-api.js")
c.covidall().then(console.log())
//logs all covid-19 data
c.covidcountry('USA').then(console.log())
//shows data for a specified country
c.usastate('Texas').then(console.log())
//shows data for a specified US state
c.allcontinents().then(console.log())
c.continents('Europe').then(console.log())
coronavirus-api.js
1.3.1 • Public • PublishedReadme
Keywords
nonePackage Sidebar
Install
npm i coronavirus-api.js
Repository
Weekly Downloads
1
Version
1.3.1
License
MIT
Unpacked Size
2.65 kB
Total Files
3