country-telephone-code

    0.2.0 • Public • Published

    Country Telephone Code

    Simple getter for telephone codes for all countries (backed by a script that dumps data direct from the CLDR).

    Install

    npm i country-telephone-code --save

    Usage

    import countryTelephoneCode, {countries} from "country-telephone-code";
     
    // countryTelephoneCode( 2-LETTER COUNTRY CODE )
    countryTelephoneCode("US"); // 1
    countryTelephoneCode("JA"); // 81
    countryTelephoneCode("ZW"); // 263

    Install

    npm i country-telephone-code

    DownloadsWeekly Downloads

    1,558

    Version

    0.2.0

    License

    MIT

    Last publish

    Collaborators

    • mehcode