About | Features | Technologies | Requirements | Starting | Contribute | License
A JavaScript tiny library for ISO 3166 data of international telephone numbers.
✔️ Country common and native name;
✔️ Country ISO-3166-1-alpha2 code format;
✔️ Country dial code;
✔️ Country priority status;
✔️ Country area code;
The following tools were used in this project:
Before starting 🏁, you need to have Git and Node installed.
# Install this module
npm install intl-tel-data --save
// Usage sample
import intlTelData from 'intl-tel-data'
for (const country of intlTelData) {
if (country.iso2 == "cm") {
console.log(`Hello ${country.name}`)
// see country properties with this log example
console.log(country)
}
}
# Clone this project
$ git clone https://github.com/tnga/intl-tel-data.git
# Access
$ cd intl-tel-data
# Install dependencies
$ npm i
# Build the project
$ npm run build
This project is under license from MIT. For more details, see the LICENSE file.