github.com/nojacko/node-country-to-iso is an open-source Node.js utility library designed to convert inconsistent country names, alternative spellings, and informal abbreviations into standardized ISO 3166-1 alpha-2 or alpha-3 country codes. Built to handle messy user inputs and dataset normalization, it parses common variations like “USA”, “U.S.A.”, “US of A”, and native country names into clean ISO representations.

Key Features

node-country-to-iso on GitHub