Ideas for additional phone options #2883
Replies: 7 comments
|
Suggested at #1542 (comment) - ability to generate cellphone/mobile numbers only |
|
Suggested at #1542 (comment) - what can we learn from the FFaker Ruby gem implementation? https://www.rubydoc.info/github/ffaker/ffaker/FFaker/PhoneNumber |
|
More strict checking for valid NANP (+1) phone numbers - #2303 |
|
Cellphone number generation (Less strict variant). For counties where it is impossible to easily distinguish and generate cellphone and landline numbers, generating any valid number would be sufficient. Reasoning: when a service that only has basic phone numbers checks, for counties where it's not trivial to tell them apart, it's ok to generate anything since the other side won't be able to tell the difference anyway. |
|
In my recent case faker generated a toll free phone number with extension It would be nice that I could specify in the options that a) I don't want Something like: faker.phone.number({ style: "international", tollFree: false, extension: false })Thank you. 🙇 |
|
The current international option generates numbers in the E.123 format. We should also have an E.124 option. Some APIs validate over it, and E.123 does not pass validation for all cases. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This discussion is to keep track of suggestions for further improvements to the
faker.phone.number()method.In v9 this is already being changed to use a "style" parameter.
https://next.fakerjs.dev/guide/upgrading.html#phone-number-style-replaces-explicit-format
However there may be use-cases which are not well covered by the eexisting "styles"
All reactions