country

0.2.0 • Public • Published

country.js

Introduces new global object: country.

Now it's only possible to get ISO-3166-1 code for each country using it's full name.

Mapping was taken from Wikipedia (http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)

on Aug 4, 2011.

However it's better to synchronize this with http://www.iso.org/iso/list-en1-semic-3.txt.

How to use:

console.log(Country['Ukraine']);//should print UA

Readme

Keywords

none

Package Sidebar

Install

npm i country

Weekly Downloads

14

Version

0.2.0

License

none

Last publish

Collaborators

  • podviaznikov