webcat12345 / ngx-intl-tel-input

Phone number input field to support international numbers, Angular
MIT License
213 stars 335 forks source link

Using libphonenumber-js for number validation #232

Open isalvadori opened 4 years ago

isalvadori commented 4 years ago

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

pasevin commented 4 years ago

Looks like https://github.com/catamphetamine/libphonenumber-js is not available anymore. Does anyone know if it moved somewhere?

Is it the same?: https://github.com/telefonicaid/libphonenumber-js

pasevin commented 4 years ago

Ok I think I found him. Looks like he moved to GitLab: https://gitlab.com/catamphetamine/libphonenumber-js

emafriedrich commented 4 years ago

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

Tea-Ice commented 4 years ago

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

alexcarrasco93 commented 3 years ago

Also detected the google-libphonenumber bundle problem... is there any updates? is it going to be replaced?

guillermodelagala commented 3 years ago

Please, replace google-libphonenumber for another alternative. ngx-intl-tel-input works fantastic, but the bundle size due to that library is so high that I have to move to another plugin :(

byungjuJin commented 2 years ago

PLEASE, YES! the bundle size is huze = 550Kb!

osamaawadalla commented 2 years ago

Same Proplem!

hsnassaad commented 1 year ago

please add this feature, google lib phone number is causing the bundle to be huge

reynirf commented 1 year ago

Having the same problem, google-libphonenumber is too large. :/