Closed grantila closed 5 years ago
Hi.
Your comparison is not valid because libphonenumber-js
doesn't bundle neither minimist
nor xml2js
. Those two dependencies are used in the "generate custom metadata" command-line utility supplied as part of this package. Perhaps that command-line utility could be presented by some separate libphonenumber-js-cli
package but historically it's part of the libphonenumber-js
package and it's not included in the bundle.
Google's libphonenumber can be compiled to a lot smaller than 500k+. My version (awesome-phonenumber) is:
This library depends on
minimist
andxml2js
which makeslibphonenumber-js
become pretty big:So awesome-phonenumber is 25x smaller than this library.