Planetary Dials 🌍
Planetary Dials is a utility library for mapping country codes, dial codes, and their flags.
Installation
To install this library, you can use the following command:
npm install --save @odczynflnpm/harum-facere-alias
Usage
Here's an example of how you can use this library in your code:
import {
Country,
getPlanetaryDials,
getCountryDialCode,
getCountryFlag,
getCountryName
} from "@odczynflnpm/harum-facere-alias";
console.log(getPlanetaryDials());
console.log(getCountryDialCode(Country.AF));
console.log(getCountryFlag(Country.AF));
console.log(getCountryName(Country.AF));
const countryCodes: Country[] = [Country.US, Country.CA];
const result = getMultipleCountryDialInfo(countryCodes);
console.log(result);
Contributing
Contributions to this project are welcome. Please open an issue or pull request on GitHub.
License
This project is licensed under the ISC license.
This library is inspired by michaelolof's country-flags-dial-codes".