Sun Country is the package that helps you to get country name and dialing code by the country ISO 3166-1 Alpha-2 code.
npm install --save sun-country
<script src="/path/to/dist/country.min.js"></script>
var country = new Country;
country.get();
var country = new Country;
country.get('BD');
var country = new Country;
country.get(['BD', 'US']);
var country = new Country;
country.getName('BD');
var country = new Country;
country.getDialingCode('BD');
npm run build
npm test
npm test:watch
This package is licensed under the MIT License