1.0.5 • Published 10 years ago

sun-country v1.0.5

Weekly downloads
3
License
-
Repository
github
Last release
10 years ago

Country

Build Status Total Downloads Version 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/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

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago