Country utilities with ISO alpha-2, alpha-3, country names, and dial codes
npm install country-utils-code-vs-nameš country-utils-code-vs-name
A simple, lightweight, and versatile JavaScript/React Native package for converting between country codes (ISO Alpha-2 / Alpha-3) and country names, and retrieving international dial codes.
⨠Features
Code ā Name Conversion: Easily switch between country names and their ISO Alpha-2 codes.
Dial Code Retrieval: Get the international telephone dial code for any country.
React Native Ready: Built to work seamlessly in both Node.js and mobile environments.
Comprehensive Data: Access a complete array of country data objects.
š¾ Installation
Use your preferred package manager to install:
Bash
npm install country-utils-code-vs-name
or
Bash
yarn add country-utils-code-vs-name
š Usage
Importing the Package
You can use a default import, which is recommended for React Native projects:
š¤ Contributing
Got a suggestion, found a bug, or spotted a data inaccuracy? Contributions are welcome! Please feel free to open an issue or submit a pull request on the GitHub repository.
š License
This package is licensed under the MIT License.