BrazilChristoPy/countries-phone-masks
Phone masks, ISO codes and flags
Countries Phone Masks
Phone masks, ISO codes and flags for all countries
Inspiration
After the need to add international phone masks into an application, I stumbled upon many libraries but they seemed too outdated or just too complex to just give me the country code, country name, flag and phone mask. This list contains a hybrid of gists, libraries and wikipedia articles. Any issues, kindly, consider creating an issue or a pull request.
Installation
npm install countries-phone-masks
Import
const countries = require('countries-phone-masks')
// or
import countries from 'countries-phone-masks'
Usage
console.log(countries.find(({ name }) => name === 'Brazil'))
// {
// name: 'Brazil',
// code: '+55',
// iso: 'BR',
// flag: 'https://cdn.kcak11.com/CountryFlags/countries/br.svg',
// mask: [ '(##)####-####', '(##)#####-####' ]
// }
Similar Projects
Discover other similar projects and AI models.
Android Kotlin library to parse and format international phone numbers. Country code picker.
🗺 A React component for interactive vector maps of the world and 100+ countries
A collection of 400+ minimalist square SVG country, state and language flags
🌍 Discover our global repository of countries, states, and cities! 🏙️ Get comprehensive data in JSON, SQL, PSQL, SQLSERVER, MONGODB, SQLITE, XML, YAML, and CSV formats. Access ISO2, ISO3 codes, country code, capital, native language, timezones (for countries), and more. #countries #states #cities
This tool gives information about the phone number that you entered.