countrypppdata
v1.0.3
Published
A script to fetch the Purchasing Power Parity (PPP) data from the World Bank API.
Maintainers
Readme
CountryPPPData
This is a script to fetch the the Price Factor data of various countries from the World Bank API. This data is to be interpreted as:
If a product is sold in the US for X USD, taking the regional economy into consideration, for a fair price, the same product must be sold in another country for (X x Price Factor) USD.
Read more on the Wikipedia Purchasing Power Parity page.
This does not have a git repository but the source code can be found on my GitHub Gist. There is a slight chance that this may be out of sync though.
Support Me
I am an independent developer. Your support can help me work better.
I am available to be hired full-time, part-time or freelance.
Documentation
Install
npm install countrypppdataImport
const fetchCountryData = require("countrypppdata");Use
const pppDataset = await fetchCountryData(); pppDataset.map(({ countryCode, countryName, priceFactor }) => { //Your logic here });
