Country
Sun Country is the package that helps you to get country name and dialing code by the country ISO 3166-1 Alpha-2 code.
Installation Process
Node
npm install --save sun-country
Browser
Basic Uses
Get all countries name and dialing code
var country = ;country;
Get a country name and dialing code
var country = ;country;
Get multiple countries name and dialing code
var country = ;country;
Get a country name
var country = ;country;
Get a country dialing code
var country = ;country;
Build
npm run build
Test
Run tests
npm test
Run tests in watch mode
npm test:watch
License
This package is licensed under the MIT License