1.0.5 • Published 9 years ago
sun-country v1.0.5
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-countryBrowser
<script src="/path/to/country.min.js"></script>Basic Uses
Get all countries name and dialing code
var country = new Country;
country.get();Get a country name and dialing code
var country = new Country;
country.get('BD');Get multiple countries name and dialing code
var country = new Country;
country.get(['BD', 'US']);Get a country name
var country = new Country;
country.getName('BD');Get a country dialing code
var country = new Country;
country.getDialingCode('BD');Build
npm run buildTest
Run tests
npm testRun tests in watch mode
npm test:watchLicense
This package is licensed under the MIT License