jameslafferty/countries — pull request #2 by fnogatz (2012-12-13 16:06:02+00:00)
Title: Added IOC country codes

Hi James,

I added country codes used by the International Olympic Committee (IOC) to your `continents.js`. In a next step I would like to query for a country's name or ISO 3166 code via its IOC code, but I'm not sure what's the best way. At the moment you have only `ISO 3166 -> Name` and `Name -> ISO 3166` implemented.

A possible way would be to rewite the module to use it in this way:
```
var Country = require('countries');
var germany = Country('Germany');
var usa = Country('USA');
var italy = Country('IT');

// use
console.log(germany.ioc); // 'GER'
console.log(usa.iso3166); // 'US'
console.log(italy.name); // 'Italy'
```

What do you think?

Greetings from Germany,
Falco