Skip to content
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

Option to generate "(555)" phone numbers #449

Open
michaeljohansen opened this issue Nov 21, 2019 · 2 comments
Open

Option to generate "(555)" phone numbers #449

michaeljohansen opened this issue Nov 21, 2019 · 2 comments

Comments

@michaeljohansen
Copy link

In movies they use the area code 555 for US phone numbers to avoid generating phone numbers for real people / organisations. See https://en.wikipedia.org/wiki/555_(telephone_number)

I'd love an option to generate numbers with area code 555, like:
chance.phone({ country: 'us', exampleNumber: true }); // -> (555) 123-4567

PS: Fantastic library.

@michaeljohansen michaeljohansen changed the title Option to generate invalid phone numbers Option to generate "(555)" phone numbers Nov 21, 2019
@victorquinn
Copy link
Member

Apologies, I missed this but yes of course I’d happily accept a PR with this addition!

@Carter-A
Copy link
Contributor

@victorquinn I've opened a PR to address this. #480

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants