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

Dependents (1)

Package Sidebar

Install

npm i country-telephone-code

Weekly Downloads

1,289

Version

0.2.0

License

MIT

Last publish

Collaborators

  • mehcode