Giter VIP home page Giter VIP logo

simple-country-dial-codes's Introduction

Simple Country Dial Codes

Dead simple JSON data file for country dial codes.

Why?

One problem I faced at the time of implementing a very simple and common feature, a country dial code selection, there are tons of repositories you can find with all the information about every country on this planet and that is where the problem was, it had a lot of information, more than we would ever need.

It was difficult to find an accurate list of dial codes anywhere and in frustration I created this.

What's inside?

For now the aim is to keep it lightweight and simple for you to use. It has the three basic information for all the countries with dial codes. Yes, any country that didn't have any dial codes isn't listed.

[ 
    {
        "name": "United States of America",
        "code": "US",
        "callingCode": "1" 
    },
    {
        "name": "United Kingdoms",
        "code": "GB", 
        "callingCode": "44" 
    },
    ...
]

Countries with multiple calling codes

For example there are three dialing codes for the country ["+1-809", "+1-829", "+1-849"] and based on this there are three different objects in the JSON file instead of keeping just one object with the three calling codes as an array.

[ 
    {
        "name": "Dominican Republic",
        "code": "DO",
        "callingCode": "1809" 
    },
    {
        "name": "Dominican Republic",
        "code": "DO", 
        "callingCode": "1829" 
    },
    ...
]
Credits

Thanks to mledoze for https://github.com/mledoze/countries

The data is dependent on the data being provided on mledoze's repo. If you find any information that you think needs attention please also feel free to notify about it on their repo.

Thanks!

simple-country-dial-codes's People

Contributors

xxxdepy avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.