@brixtol/country-names
Country code (3166-1 alpha-2) to Country name (ISO 3166 mappings used by the Brixtol Textiles internal API when dealing with Localization and i18n operations.
Mappings returned in the English Language.
Minified: 2.23 KB
Gzipped: 1.08 KB
Install
pnpm
pnpm i @brixtol/country-names
Boomer / Sheep Alternatives
npm
npm install @brixtol/country-names
Yarn
yarn add @brixtol/country-names
Usage
You can pass in a country code that is lowercase, uppercase or a mixture of both.
import { getCountryName } from "@brixtol/country-names";
const sweden = getCountryName("SE");
const netherlands = getCountryName("nl");
Related
License
Licensed under MIT
We ♡ open source!