Minor utility library allowing us to get ISO code for country.

Usage no npm install needed!

<script type="module">
  import country from '';



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 (

on Aug 4, 2011.

However it's better to synchronize this with

Library can be used both in browser or on server as NPM module.

  npm install country

How to use:

var country = require('country');
console.log(country['Ukraine']);//should print UA