https://github.com/uniplaces/ember-cli-countries
Ember.js addon that provides multiple utilities regarding countries and country codes
https://github.com/uniplaces/ember-cli-countries
emberjs emberjs-addon
Last synced: about 2 months ago
JSON representation
Ember.js addon that provides multiple utilities regarding countries and country codes
- Host: GitHub
- URL: https://github.com/uniplaces/ember-cli-countries
- Owner: uniplaces
- License: mit
- Created: 2016-11-25T11:37:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-13T11:33:29.000Z (over 6 years ago)
- Last Synced: 2025-04-03T01:09:08.617Z (about 2 months ago)
- Topics: emberjs, emberjs-addon
- Language: JavaScript
- Homepage:
- Size: 297 KB
- Stars: 1
- Watchers: 28
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ember-cli-countries
[](https://badge.fury.io/js/ember-cli-countries)
[](https://travis-ci.org/uniplaces/ember-cli-countries)
[](https://emberobserver.com/addons/ember-cli-countries)
[](https://david-dm.org/uniplaces/ember-cli-countries)
[](https://david-dm.org/uniplaces/ember-cli-countries?type=dev)This is an addon with some utils and helpers to get country names and calling codes given the country code.
## Usage
* `ember install ember-cli-countries`
## Utils
* `getCountryName (countryCode)` returns the country name (currently in EN_GB) given the country code
* `getCountryCallingCode (countryCode)` returns the country calling code (e.g. +1) given the country code## Helpers
* `{{country-name code}}`
* `{{country-calling-code code}}`## Contributing
Any contribution is welcome. Please read our [guidelines](CONTRIBUTING.md).
However, if your contribution involves adding a new feature, please open an issue before to
share your plan and agree the details of the feature before starting implementing it.