country-telephone-code
v0.2.0
Published
> Simple getter for telephone codes for all countries (backed by a script that dumps data direct from the CLDR).
Downloads
8,397
Maintainers
Readme
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