Skip to content

A JavaScript tiny library for ISO 3166 data of international telephone numbers.

License

Notifications You must be signed in to change notification settings

tnga/intl-tel-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

International Telephone Data

Github top language Github language count License

About   |   Features   |   Technologies   |   Requirements   |   Starting   |   Contribute   |   License  


🎯 About

A JavaScript tiny library for ISO 3166 data of international telephone numbers.

✨ Features

✔️ Country common and native name;
✔️ Country ISO-3166-1-alpha2 code format;
✔️ Country dial code;
✔️ Country priority status;
✔️ Country area code;

🚀 Technologies

The following tools were used in this project:

✅ Requirements

Before starting 🏁, you need to have Git and Node installed.

🏁 Starting

# 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)
    } 
}

🛃 Contribute

# 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

📝 License

This project is under license from MIT. For more details, see the LICENSE file.

 

Back to top

About

A JavaScript tiny library for ISO 3166 data of international telephone numbers.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published