npm
npmjs.com › package › google-libphonenumber
google-libphonenumber - npm
January 19, 2026 - libphonenumber-js is a much more radical approach to Google's libphonenumber. It is a rewrite of the original library based on its source phone metadata but implemented without depending on the Google Closure library.
» npm install google-libphonenumber
Published Jan 19, 2026
Version 3.2.44
Author Rui Marinho
GitHub
github.com › google › libphonenumber
GitHub - google/libphonenumber: Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers. · GitHub
Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers. - google/libphonenumber
Starred by 17.9K users
Forked by 2.2K users
Languages C++ 53.4% | Java 29.9% | JavaScript 15.8% | CMake 0.4% | C 0.2% | Closure Templates 0.1%
npm
npmjs.com › package › libphonenumber-js
libphonenumber-js - npm
1 week ago - A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript. Latest version: 1.12.41, last published: 5 days ago. Start using libphonenumber-js in your project by running `npm i libphonenumber-js`. There are 3934 ...
» npm install libphonenumber-js
Published Mar 28, 2026
Version 1.12.41
Author catamphetamine
Catamphetamine
catamphetamine.github.io › libphonenumber-js
libphonenumber-js
A simpler and smaller rewrite of Google Android's libphonenumber library.
GitHub
github.com › catamphetamine › libphonenumber-js
GitHub - catamphetamine/libphonenumber-js: A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript · GitHub
A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript - catamphetamine/libphonenumber-js
Starred by 3K users
Forked by 211 users
Languages JavaScript 98.2% | HTML 1.7%
Js
libphonenumbers.js.org
libphonenumbers: Introduction
If you are not redirected automatically, follow this link
GitHub
github.com › ruimarinho › google-libphonenumber
GitHub - ruimarinho/google-libphonenumber: The up-to-date and reliable Google's libphonenumber package for node.js. · GitHub
libphonenumber-js is a much more radical approach to Google's libphonenumber. It is a rewrite of the original library based on its source phone metadata but implemented without depending on the Google Closure library.
Starred by 1.5K users
Forked by 155 users
Languages JavaScript
GitHub
github.com › google › libphonenumber › blob › master › javascript › README.md
libphonenumber/javascript/README.md at master · google/libphonenumber
Google's JavaScript library for parsing, formatting, and validating international phone numbers. Checkout closure-library, closure-compiler, closure-linter and python-gflags next to libphonenumber:
Author google
cdnjs
cdnjs.com › home › libraries › google-libphonenumber
google-libphonenumber - Libraries - cdnjs - The #1 free and open source CDN built to make life easier for developers
The up-to-date and reliable Google's libphonenumber package for node.js for parsing, formatting, and validating international phone numbers. - Simple. Fast. Reliable. Content delivery at its finest. cdnjs is a free and open-source CDN service ...
Tabnine
tabnine.com › home page › code › javascript › google-libphonenumber
google-libphonenumber JavaScript and Node.js code examples | Tabnine
validatePhoneNumber(phoneNumber) { /* Phone number validation using google-libphonenumber */ let valid = false; try { const phoneUtil = PhoneNumberUtil.getInstance(); valid = phoneUtil.isValidNumber(phoneUtil.parse(phoneNumber)); } catch(e) { valid = false; } if(valid) { this.setState({ message:'Phone number '+this.getValidNumber(phoneNumber)+' is valid', color:'green' }); } else { this.setState({ message:'Phone number '+phoneNumber+' is not valid', color:'red' }); } }
GitHub
github.com › google › libphonenumber › tree › master › javascript
libphonenumber/javascript at master · google/libphonenumber
Google's JavaScript library for parsing, formatting, and validating international phone numbers. Checkout closure-library, closure-compiler, closure-linter and python-gflags next to libphonenumber:
Author google
Top answer 1 of 4
9
I've got a custom build (currently 220KB) that I use for my International Telephone Input plugin, with plenty of helper functions exposed. Read the source for details.
2 of 4
5
You can also use my lib. https://github.com/Gilshallem/phoneparser
Its only got one method but you can do a lot with it
parsePhone("12025550104");
result: { countryCode:1, areaCode:202, number:5550104, countryISOCode:"US" }
Snyk
snyk.io › advisor › google-libphonenumber › google-libphonenumber code examples
Top 5 google-libphonenumber Code Examples | Snyk
var numberObj = phoneUtil.parseAndKeepRawInput(number, countryCode); return phoneUtil.isPossibleNumberWithReason(numberObj); } catch (e) { //console.log(e); // here I convert thrown errors into ValidationResult enums (if possible) if (e == libphonenumber.Error.INVALID_COUNTRY_CODE) { return libphonenumber.PhoneNumberUtil.ValidationResult.INVALID_COUNTRY_CODE; } if (e == libphonenumber.Error.NOT_A_NUMBER) { return 4; } if (e == libphonenumber.Error.TOO_SHORT_AFTER_IDD || e == libphonenumber.Error.TOO_SHORT_NSN) { return libphonenumber.PhoneNumberUtil.ValidationResult.TOO_SHORT; } if (e == libphonenumber.Error.TOO_LONG) { return libphonenumber.PhoneNumberUtil.ValidationResult.TOO_LONG; } // broken return -99; } } blockchain / bc-phone-number / src / js / libphonenumber.js View on Github
cdnjs
cdnjs.com › home › libraries › libphonenumber-js
libphonenumber-js - Libraries - cdnjs - The #1 free and open source CDN built to make life easier for developers
libphonenumber-js · A simpler (and smaller) rewrite of Google Android's popular libphonenumber library · 3k · GitHub · package · MIT licensed · https://halt-hammerzeit.github.io/libphonenumber-js/ Tags: javascript, telephone, phone, number, ...
CloudDefense.ai
clouddefense.ai › code › javascript › example › google-libphonenumber
Top 10 Examples of <!-- -->google-libphonenumber<!-- --> code in Javascript | CloudDefense.AI
return (phoneControl: AbstractControl): {[key: string]: boolean} => { if (!subscribe) { subscribe = true; countryControl.valueChanges.subscribe(() => { phoneControl.updateValueAndValidity(); }); } if(phoneControl.value !== ""){ try{ const phoneUtil = libphonenumber.PhoneNumberUtil.getInstance(); let phoneNumber = "" + phoneControl.value + "", region = countryControl.value.iso, number = phoneUtil.parse(phoneNumber, region), isValidNumber = phoneUtil.isValidNumber(number); if(isValidNumber){ return null; } }catch(e){ // console.log(e); return { validCountryPhone: true }; } return {
GitHub
github.com › catamphetamine › libphonenumber-js › blob › master › README.md
libphonenumber-js/README.md at master · catamphetamine/libphonenumber-js
It is written in C++ and Java, and, while it has an official autogenerated javascript port, that port is tightly coupled to Google's closure javascript framework, and, when compiled into a bundle, weighs about 550 kB (350 kB code + 200 kB metadata). With many websites today asking for user's phone number, the internet could benefit from a simpler and smaller library that would just deal with parsing or formatting personal phone numbers, and that's what libphonenumber-js is.
Author catamphetamine
npm
npmjs.com › package › @types › google-libphonenumber
@types/google-libphonenumber - npm
TypeScript definitions for google-libphonenumber. Latest version: 7.4.30, last published: 2 years ago. Start using @types/google-libphonenumber in your project by running `npm i @types/google-libphonenumber`. There are 56 other projects in the npm registry using @types/google-libphonenumber.
» npm install @types/google-libphonenumber
Published Nov 07, 2023
Version 7.4.30