New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phone Number Formats #84
Comments
How many do we want? Also, do you want to add locales? You could give me the task to make an effort. |
You can use the JSON mentioned here. I'm thinking about something like: randPhoneNumber({ countryCode: 'AN' }) // +599438438 |
I'm open to suggestions, though. |
Do you want to generate from a regex a phone number? I think the length of the string is different country by country. Also, many developers use validator.js, so it should generate a number that passes the function |
Seems fine to me |
I'm not sure if this is overkill, but i've user Google phone lib in the past for validating numbers and its great. I think you can also use it to format numbers from lots of diff places? Could help? |
@ikerasiotis I see that @arulprabakaran already did this. |
@NetanelBasal. ok.. |
You're welcome to contribute and add more generators. |
Description
Support formats in phone number function.
References:
https://gist.github.com/anubhavshrimal/75f6183458db8c453306f93521e93d37
https://en.wikipedia.org/wiki/National_conventions_for_writing_telephone_numbers
Proposed solution
No response
Alternatives considered
No response
Do you want to create a pull request?
No
The text was updated successfully, but these errors were encountered: