Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

country-telephone-data

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

country-telephone-data

Contains data about a country's telephone codes. It has information on the country's ISD code, the country's ISO name, and a subscribed format for the telephone numbers in that country.

  • 0.4.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21K
increased by51.99%
Maintainers
1
Weekly downloads
 
Created
Source

Country telephone data

Contains data about a country's telephone codes. It has information on the country's ISD code, the country's ISO name, and a subscribed format for the telephone numbers in that country.

E.g.

{
   name: "Zimbabwe",
   iso2: "zw",
   dialCode: "263",
   format: "+...-.-......",
   hasAreaCodes: false
}

The required module is an object with following structure -

{
   allCountries: allCountries,
   allCountriesIso2Lookup: allCountriesIso2Lookup
}

allCountries is an array with data on each country as an object with the following format -

{
   name: "Zimbabwe",
   iso2: "zw",
   dialCode: "263",
   format: "+...-.-......",
   hasAreaCodes: false
}

allCountriesIso2Lookup is the same data as alLCountries, but as a map, indexed by the iso2 name of the country -

{
    ...
    zw: {
       name: "Zimbabwe",
       iso2: "zw",
       dialCode: "263",
       format: "+...-.-......",
       hasAreaCodes: false
    },
    ...
}

Keywords

FAQs

Package last updated on 10 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc