country-list-with-dial-code-and-flag
TypeScript icon, indicating that this package has built-in type declarations

5.0.3 • Public • Published

Country list with dial code and flag

npm version ts contributors

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

Full Documentation

Installation

Via NPM

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

Via CDN

<script src="https://cdn.jsdelivr.net/npm/country-list-with-dial-code-and-flag/dist/main.js"></script>
Country Flag SVG (optional)
<script src="https://cdn.jsdelivr.net/npm/country-list-with-dial-code-and-flag/dist/country-flag-svg.js"></script>
<div id="flag"></div>
<script>
  const mm = window.CountryList.findOneByCountryCode('mm')
  document.getElementById('flag').innerHTML = window.CountryFlagSvg[mm.code]
</script>

Development

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

Package Sidebar

Install

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

Weekly Downloads

7,734

Version

5.0.3

License

ISC

Unpacked Size

713 kB

Total Files

269

Last publish

Collaborators

  • necessarylion