Skip to content

IftekherSunny/Country-For-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Country

Build Status Version Total Downloads License

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
<script src="/path/to/dist/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 build

Test

Run tests
npm test
Run tests in watch mode
npm test:watch

License

This package is licensed under the MIT License

About

Sun Country is the package that helps you to get country name and dialing code by the country ISO 3166-1 Alpha-2 code.

Resources

License

Stars

Watchers

Forks

Packages

No packages published