question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using libphonenumber-js for number validation

See original GitHub issue

Hi, 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:open
  • Created 4 years ago
  • Reactions:19
  • Comments:10

github_iconTop GitHub Comments

7reactions
Tea-Icecommented, Jun 24, 2020

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…

4reactions
emafriedrichcommented, Jun 3, 2020

analizing my bundle with webpack-bundle-analyzer i detected that google-libphonenumber causes a large bundle size

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found