format-phone-number

Make correct combination of phone number parts depending on a country.

Usage no npm install needed!

<script type="module">
  import formatPhoneNumber from 'https://cdn.skypack.dev/format-phone-number';
</script>

README

format-phone-number

Greenkeeper badge Build Status npm package Dependency Status devDependency Status

Make correct combination of phone number parts depending on a country.

It is really difficult to get the info about possible phone numbers formatting for all countries, so numbers which data is not available here will have an E.123 recommendation formatting.

Installation

yarn add format-phone-number

License

MIT