Skip to content

Laboratory/country-mapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

country-mapper

Build Status

Country naming approach might be very unique from org to org. The reason for that is that decision makers do not pay much attention to existing industry standards while just stop on the nice looking names, which will lead to errors when different systems should talk to each other. We notice that country should have aligned with ISO 3166 name. To not have you to change your way, we offer you to introduce a country mapping as below:

Sint Eustatius -> Bonaire, Saint Eustatius And Saba
Bonaire -> Bonaire, Saint Eustatius And Saba

Installation

Via npm:

npm install country-mapper

Usage


  const mapper = require('country-mapper');
  mapper.convert('Russian Federation'); // RU
  mapper.convert('Russia'); // RU
  const mapper = require('country-mapper');
  mapper.iso('Russia'); // Russian Federation

License

Formidable is licensed under the MIT license.

About

Map from custom names to ISO 3166

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published