Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search by IOC code #51

Open
craftbyte opened this issue May 13, 2016 · 1 comment
Open

Search by IOC code #51

craftbyte opened this issue May 13, 2016 · 1 comment

Comments

@craftbyte
Copy link

It would be nice to implement a search by IOC code as well as the alpha2 and alpha3 code.
Maybe implement as countries.IOC.code

@Sonatrix
Copy link

Sonatrix commented Apr 21, 2018

You can still use lookup
var lookup = require('country-data-list').lookup;

// Match a value (grab first from array)
var alpha2 = lookup.countries({alpha2: 'GH'})[0];
var ioc = lookup.countries({ioc: 'GCI'})[0];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants