OSS Countries
Open Source Initiative for country data from Sigma-Ratings
Installation
In order to install countries
package, just run:
npm install --save @sigma-oss/countries
Usage
A snippet that shows the library's usage:
import {getCountryDataByCode, getAllCountryData} from '@sigma-oss/countries'
console.log(getCountryDataByCode('br')) // Information regarding Brazil eg: {svg, code, name, emoji, unicode, name, title, dialCode}
console.log(getAllCountryData()) // List with all countries