ruimarinho / google-libphonenumber

The up-to-date and reliable Google's libphonenumber package for node.js.

Home Page:https://ruimarinho.github.io/google-libphonenumber

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Too much useless functions

lordent opened this issue · comments

image

There is too much code in your assembly that is not directly related to determining the phone number, because of this, the bundle weighs almost a megabyte

image

There is too much code in your assembly that is not directly related to determining the phone number, because of this, the bundle weighs almost a megabyte

Same problem!

This due to the dependency on Google Closure. Unfortunately, until Google realizes we're in 2023 and decides to shift course on that, there's not much I can do to help here. Definitely more suited for a server-side implementation given its size.

I don't know how well maintained this alternative library is, but if you're looking for a "non-official", more lightweight port (with less guarantees), you could give https://catamphetamine.gitlab.io/libphonenumber-js a test.