Get started with libphonenumber CDN
Apache-2.0 licensed
Libphonenumber is a C/C++ library that provides global phone number parsing and formatting.
Tags:- phonenumber
Stable version
Copied!
How to start using libphonenumber CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with libphonenumber CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/libphonenumber/8.13.32/phonenumberutil.min.js"></script>
</head>
<body>
<input type="text" id="phoneNumberInput" placeholder="Enter phone number">
<button onclick="formatPhoneNumber()">Format Phone Number</button>
<p id="formattedPhoneNumber"></p>
<script>
function formatPhoneNumber() {
const phoneInput = document.getElementById('phoneNumberInput');
const phoneNumber = phoneInput.value;
const phoneUtil = new google.maps.places.PhoneNumberUtil();
const formattedNumber = phoneUtil.format(phoneNumber, 'INTERNATIONAL');
document.getElementById('formattedPhoneNumber').innerText = formattedNumber;
}
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
All versions
7.0.10
7.0.11
7.0.12
7.0.2
7.0.3
7.0.4
7.0.5
7.0.6
7.0.7
7.0.8
7.0.9
7.1.0
7.1.1
7.2.0
7.2.1
7.2.2
7.2.3
7.2.4
7.2.5
7.2.6
7.2.7
7.2.8
7.3.0
7.3.1
7.3.2
7.4.0
7.4.1
7.4.2
7.4.3
7.4.4
7.4.5
7.5.0
7.5.1
7.5.2
7.6.0
7.6.1
7.7.0
7.7.1
7.7.2
7.7.3
7.7.4
7.7.5
8.0.0
8.0.1
8.1.0
8.10.0
8.10.1
8.10.10
8.10.11
8.10.12
8.10.13
8.10.14
8.10.15
8.10.16
8.10.17
8.10.18
8.10.19
8.10.2
8.10.20
8.10.21
8.10.22
8.10.23
8.10.3
8.10.4
8.10.5
8.10.6
8.10.7
8.10.8
8.10.9
8.11.0
8.11.1
8.11.2
8.11.3
8.11.4
8.11.5
8.12.0
8.12.1
8.12.10
8.12.11
8.12.12
8.12.13
8.12.14
8.12.15
8.12.16
8.12.17
8.12.18
8.12.19
8.12.2
8.12.20
8.12.21
8.12.22
8.12.23
8.12.24
8.12.25
8.12.26
8.12.27
8.12.28
8.12.29
8.12.3
8.12.30
8.12.31
8.12.32
8.12.33
8.12.34
8.12.35
8.12.36
8.12.37
8.12.38
8.12.39
8.12.4
8.12.40
8.12.41
8.12.42
8.12.43
8.12.44
8.12.45
8.12.46
8.12.47
8.12.48
8.12.49
8.12.50
8.12.51
8.12.52
8.12.53
8.12.54
8.12.55
8.12.56
8.12.57
8.12.6
8.12.7
8.12.9
8.13.0
8.13.1
8.13.10
8.13.11
8.13.12
8.13.13
8.13.14
8.13.15
8.13.16
8.13.17
8.13.18
8.13.19
8.13.2
8.13.20
8.13.21
8.13.22
8.13.23
8.13.24
8.13.25
8.13.26
8.13.27
8.13.28
8.13.29
8.13.3
8.13.30
8.13.31
8.13.32
8.13.33
8.13.34
8.13.35
8.13.36
8.13.37
8.13.38
8.13.39
8.13.4
8.13.40
8.13.41
8.13.42
8.13.43
8.13.44
*** 8.13.45
8.13.5
8.13.6
8.13.7
8.13.8
8.13.9
8.2.0
8.3.0
8.3.1
8.3.2
8.3.3
8.4.0
8.4.1
8.4.2
8.4.3
8.5.0
8.5.1
8.5.2
8.6.0
8.7.0
8.7.1
8.8.0
8.8.1
8.8.10
8.8.11
8.8.2
8.8.3
8.8.4
8.8.5
8.8.6
8.8.7
8.8.8
8.8.9
8.9.0
8.9.1
8.9.10
8.9.11
8.9.12
8.9.13
8.9.14
8.9.15
8.9.16
8.9.2
8.9.3
8.9.4
8.9.5
8.9.6
8.9.7
8.9.8
8.9.9