Skip to content

senglin/phone-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phone Number Canonicalization Sample Application

This demo is based off the Phone Number Verification without Regular Expression project. I extended it to use libphonenumber-js, which is based off Google's libpphonenumber. The canonicalized output is of the E126 standard.

Setup

  1. Make sure you have Docker installed.

  2. Clone repository, build and run the container

git clone https://github.com/senglin/phone-validation.git
cd phone-validation
docker build -t phonenumber-validation .
docker run -it --rm -p 3000:3000 phonenumber-validation
  1. Try out the following links on the browser which will result in +12069876123.
http://localhost:3000/check/2069876123 
http://localhost:3000/check/12069876123 
http://localhost:3000/check/+12069876123 
http://localhost:3000/check/+1(206)987-6123 
http://localhost:3000/check/+1(206)987-6123 
http://localhost:3000/check/(206) 987-6123
  1. Ctrl-C to shut down the server.

Contributors

License

MIT

About

An example of phone number canonicalization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published