This repo provides countries metadata of Google's libphonenumber library.
The Closure InputFile in this repo: asyoutypeformatter.js
only provides features for cleave.js, you will need to build your own InputFile if you are not using this for Cleave.js
gulp build-metadata:all
Build phone-type-formatter.js for cleave.js
For specific country:
gulp build-country:{country}
For all the countries:
gulp build-country:all
For customized countries combination group:
gulp build-country:customized --countries=AU,CN...
- Replace the metadata file with:
metadata.{country}.js
- Check gulp-closure-compiler for more build options (Java 1.7+, Node.js v4.4.5+ required)
- This repo is inspired by i18n.phonenumbers. If you are not using this for Cleave.js, probably that is what you need.