Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 6 days 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 (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-13T11:33:29.000Z (about 6 years ago)
- Last Synced: 2024-12-17T16:32:20.305Z (10 days ago)
- Topics: emberjs, emberjs-addon
- Language: JavaScript
- Homepage:
- Size: 297 KB
- Stars: 1
- Watchers: 29
- 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
[![npm version](https://badge.fury.io/js/ember-cli-countries.svg)](https://badge.fury.io/js/ember-cli-countries)
[![Build Status](https://travis-ci.org/uniplaces/ember-cli-countries.svg?branch=master)](https://travis-ci.org/uniplaces/ember-cli-countries)
[![Ember Observer Score](https://emberobserver.com/badges/ember-cli-countries.svg)](https://emberobserver.com/addons/ember-cli-countries)
[![dependencies](https://david-dm.org/uniplaces/ember-cli-countries.svg)](https://david-dm.org/uniplaces/ember-cli-countries)
[![devDependencies](https://david-dm.org/uniplaces/ember-cli-countries/dev-status.svg)](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.