<commit_before>>Note that this README is for the currently developed version of the library

## ISO 3166 for Angular JS

This project is an ISO 3166 (Country codes) module for AngularJS. It provides:

* A service (factory) that gives access to all country codes
* A filter to print country codes as their standard name (FR -> FRANCE)
* A validation directive to validate country codes

## Get it

This library is available with the bower package manager, you can either:

* Execute the following command: `bower install iso-3166-country-codes-angular --save`
* Add this line in your dependencies: `"iso-3166-country-codes-angular": "1.1.1"`

## Features

### Factory

You can have access to country codes information and several utilitary methods.

```javascript
// Declare the factory as dependency
angular.module('myApp')
  .controller('MyCtrl', function (ISO3166) {
    // Test if a value is a country code
    console.log(ISO3166.isCountryCode('FR')); // true
    console.log(ISO3166.isCountryCode('FRA')); // false

    // Get country name
    console.log(ISO3166.getCountryName('FR'));<commit_msg>Fixes #15<commit_after>>Note that this README is for the currently developed version of the library

## ISO 3166 for Angular JS

This project is an ISO 3166 (Country codes) module for AngularJS. It provides:

* A service (factory) that gives access to all country codes
* A filter to print country codes as their standard name (FR -> FRANCE)
* A validation directive to validate country codes

## Get it

This library is available with the bower package manager, you can either:

* Execute the following command: `bower install iso-3166-country-codes-angular --save`
* Add this line in your dependencies: `"iso-3166-country-codes-angular": "1.1.1"`

## Features

### Factory

You can have access to country codes information and several utilitary methods.

```javascript
// Declare the factory as dependency
angular.module('myApp', ["iso-3166-country-codes"])
  .controller('MyCtrl', function (ISO3166) {
    // Test if a value is a country code
    console.log(ISO3166.isCountryCode('FR')); // true
    console.log(ISO3166.isCountryCode('FRA')); // false

    // Get country name
    console.log(ISO3166.getCountryName('FR'));
{'fraction_non_alphanumeric': 0.1, 'fraction_numerical': 0.034080717488789235, 'mean_word_length': 4.212616822429907, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6355807', 'n_tokens_mistral': 665, 'n_tokens_neox': 613, 'n_words': 261}