Phone Numbers is a fast, optimized library for validating and classifying national and international phone numbers in Java and JavaScript.
Based on the data provided by Google's libphonenumber library, the provided tools let you generate metadata tuned to your needs. Create small data with lower accuracy for mobile applications, or high precision data for server side code. Easily exclude metadata you don't need and even create new classifications to suit your business logic.
bazel build ...
bazel test ...
mvn install -DskipTests
mvn test
yarn
tsc -p .
yarn jest dist/tests/index.test.js
Obviously you need Yarn and the TypeScript compiler (tsc) installed first.