Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
covid19-data
Advanced tools
A basic NPM package to fetch data about the COVID-19 coronavirus outbreak.
Installing covid19-data
is easy. Just run the following command to add it to your NPM project...
npm i covid19-data
There are no methods on the covid19-data
package other than the default one. You can use the package to either get information about every country - including data about the world - or about a specific country.
The default method takes one parameter - country
. If this parameter is not provided, the package returns an array full of data about every country, including the world (this is at index 0 of the array).
const covid = require('covid19-data');
// get data about every country, including the world
const everyCountry = await covid();
// get data about a specific country - in this case the UK
const uk = await covid('uk');
When the country has been inputted, the package returns an object like this:
{
country: string,
cases: number,
todayCases: number,
deaths: number,
todayDeaths: number,
recovered: number,
critical: number
}
When the country has not been provided, it outputs an array of the schema. At index 0, there is a version of the schema that has the country set to null
that represents an overview of the world as a whole.
covid19-data
is licensed using the MIT license.
This means that you can...
This also means you can not...
In order to be able to do this you must...
FAQs
Fetches data about the coronavirus outbreak.
The npm package covid19-data receives a total of 0 weekly downloads. As such, covid19-data popularity was classified as not popular.
We found that covid19-data demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.