Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
country-telephone-data
Advanced tools
Has country codes for all countries in the world. Please send a PR if you see something missing or find a mistake.
How to use it -
npm install country-telephone-data
-- in your file
var countryTelData = require('country-telephone-data')
countryTelData.allCountries // has data as array of objects
countryTelData.iso2Lookup // has data as a map (object) indexed by iso2 name of the country
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,
iso2Lookup: iso2Lookup
}
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
}
iso2Lookup 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
},
...
}
FAQs
Has country codes for all countries in the world. Please send a PR if you see something missing or find a mistake.
The npm package country-telephone-data receives a total of 40,440 weekly downloads. As such, country-telephone-data popularity was classified as popular.
We found that country-telephone-data demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.