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

/country-telephone-code/

    Package Sidebar

    Install

    npm i country-telephone-code

    Weekly Downloads

    2,757

    Version

    0.2.0

    License

    MIT

    Last publish

    Collaborators

    • mehcode