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

country-list-with-dial-code-and-flag

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

country-list-with-dial-code-and-flag

Country list with dial code and flag

  • 3.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11K
decreased by-55.8%
Maintainers
1
Weekly downloads
 
Created
Source

Country list with dial code and flag

npm version ts ts countributers

This package provide all country list with their flag emoji and dial number code.

Installation

npm install country-list-with-dial-code-and-flag
import CountryList from 'country-list-with-dial-code-and-flag'

Available Functions

FunctionDescription
getListget all available countries
searchFlagfilter countries with keyword Eg. searchFlag('keywordToSearch')
findFlagget specific country by 2 character country code Eg. findFlagByDialCode('MM')
findFlagsByDialCodeget list of countries by dial code Eg. findFlagByDialCode('+95')
findFlagByDialCodeget country by dial code Eg. findFlagByDialCode('+95')

Example response

[
 { "name": "Afghanistan", "dial_code": "+93", "code": "AF", "flag": "🇦🇫" },
 { "name": "Myanmar", "dial_code": "+95", "code": "MM", "flag": "🇲🇲" }
]

Development

Want to contribute? Great! Fork the repo and create PR to us.

Buy me Coffee

kofi

Keywords

FAQs

Package last updated on 27 Oct 2022

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