iso-3166-country-codes-angular
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "iso-3166-country-codes-angular", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "An AngularJS module to work with Country Codes", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/BluePyth/iso-3166-country-codes-angular.git" | ||
"url": "https://github.com/rsertelon/iso-3166-country-codes-angular.git" | ||
}, | ||
@@ -19,3 +19,3 @@ "main": "index.js", | ||
"bugs": { | ||
"url": "https://github.com/BluePyth/iso-3166-country-codes-angular/issues" | ||
"url": "https://github.com/rsertelon/iso-3166-country-codes-angular/issues" | ||
}, | ||
@@ -22,0 +22,0 @@ "devDependencies": { |
@@ -39,4 +39,4 @@ >Note that this README is for the currently developed version of the library | ||
// { | ||
// 'DE': 'GERMANY', | ||
// 'FR': 'FRANCE' | ||
// 'DE': 'Germany', | ||
// 'FR': 'France' | ||
// } | ||
@@ -56,7 +56,7 @@ | ||
// Get country code by country name | ||
console.log(ISO3166.getCountryCode('FRANCE')); | ||
console.log(ISO3166.getCountryCode('France')); | ||
// FR | ||
// Get country code by country name, manipulated by String methods. | ||
console.log(ISO3166.getCountryCode('FRANCE'), 'toLowerCase'); | ||
console.log(ISO3166.getCountryCode('France'), 'toLowerCase'); | ||
// fr | ||
@@ -67,5 +67,12 @@ | ||
// { | ||
// 'FR': 'FRANCE', | ||
// 'FR': 'France', | ||
// ... | ||
// } | ||
console.log(ISO3166.countryToCode); | ||
// { | ||
// 'France': 'FR' | ||
// ... | ||
// } | ||
console.log(ISO3166.countryCodes); | ||
// ['AF', 'AX', 'AL', ... ] | ||
@@ -80,3 +87,3 @@ }); | ||
```html | ||
<!-- if countryCode is 'FR', will print 'FRANCE' --> | ||
<!-- if countryCode is 'FR', will print 'France' --> | ||
<p>{{countryCode | isoCountry }}</p> | ||
@@ -88,3 +95,3 @@ ``` | ||
```html | ||
<!-- if countryName is 'FRANCE', will print 'FR' --> | ||
<!-- if countryName is 'France', will print 'FR' --> | ||
<p>{{countryName | isoCountryCode }}</p> | ||
@@ -106,3 +113,3 @@ ``` | ||
You can use [Github's issues](https://github.com/BluePyth/iso-3166-country-codes-angular/issues) to submit feature requests and bug reports. | ||
You can use [Github's issues](https://github.com/rsertelon/iso-3166-country-codes-angular/issues) to submit feature requests and bug reports. | ||
@@ -109,0 +116,0 @@ ## Contributions |
Sorry, the diff of this file is not supported yet
22735
125