{"repo":"ruimarinho/google-libphonenumber","free":true,"listed":false,"github":"https://github.com/ruimarinho/google-libphonenumber","clone":"git clone https://github.com/ruimarinho/google-libphonenumber.git","description":"The up-to-date and reliable Google's libphonenumber package for node.js.","language":"JavaScript","stars":1484,"topics":["libphonenumber","phone","parser","formatter"],"license":null,"category":"dev-tools","readme_excerpt":"google-libphonenumber The up-to-date and reliable Google's libphonenumber package for node.js. Zero dependencies. Introduction Google's libphonenumber is a library that parses, formats, stores and validates international phone numbers. It has been used by Android since version 4.0 and is a phenomenal repository of carrier metadata. Although it compiles down to Java, C++ and JS, its JS port is tightly coupled to the Google Closure library. This makes it more difficult to directly require and use the code on a node.js project. Google eventually started publishing google-closure-library directly to NPM, ending years of ill-maintained community packages. However, running the original library on node.js remains a cumbersome process. After all these years, Google's libphonenumber is still not officially available on NPM. What is the best way to use Google's libphonenumber on node.js then? If you're looking for a convenient and easy method, that's what this package is all about. Installation Install the package via npm : TypeScript This package ships without type definitions, but the community maintains them as @types/google-libphonenumber : Usage The following is a simple phone information extraction example similar to what can be viewed on the official demo page. ⚠️ Most libphonenumber functions expect to receive an instance of libphonenumber.PhoneNumber which can be obtained by calling phoneUtil.parse or phoneUtil.parseAndKeepRawInput on a raw (string) number, otherwise it will t","default_branch":null,"files":null,"tree":[],"storefront":"/r/ruimarinho","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ruimarinho/google-libphonenumber/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}