Using libphonenumber-js for number validation
See original GitHub issueHi,
while working on a project we came across to the fact that google-libphonenumber
was consuming a lot of resources, slowing then the system.
According to this, libphonenumber-js
is a lighter version of google-libphonenumber
.
So, I was wondering if the dependency to google-libphonenumber
could be replaced to the one from libphonenumber-js
. The APIs are not exactly the same, but with some educated guesses I was able to make it work in my project.
Would this be a welcome pull request?
Thanks for the attention, Ilenia
Issue Analytics
- State:
- Created 4 years ago
- Reactions:19
- Comments:10
Top Results From Across the Web
Using libphonenumber for International Phone Numbers
Libphonenumber is Google's formatting, parsing, and validation tool for international phone numbers. Learn how to use it in your global apps ...
Read more >catamphetamine/libphonenumber-js - GitHub
Checks if the phone number is "possible". Only checks the phone number length, doesn't check the actual phone number digits against any regular...
Read more >libphonenumber-js evaluates good phone number as false
libphonenumber -js does not validate a phone number that should be a valid number. It returns 'false' every time. This seems pretty simple...
Read more >Using libphonenumber to Validate Phone Numbers - Baeldung
In this quick tutorial, we'll see how to use Google's open-source library libphonenumber to validate phone numbers in Java.
Read more >How to use the libphonenumber-js.isValidNumber function in ...
Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Have there been any updates on this? google-libphonenumber makes up about 25~30% of my total bundle size, whereas libphonenumber-js would cut this down to about 5% of the total bundle size…
analizing my bundle with
webpack-bundle-analyzer
i detected thatgoogle-libphonenumber
causes a large bundle size