Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.38 KB

README.md

File metadata and controls

29 lines (19 loc) · 1.38 KB

ember-cli-countries

npm version Build Status Ember Observer Score dependencies devDependencies

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. 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.