phone number
#2577
Replies: 1 comment
-
FFR: https://fakerjs.dev/api/phone.html#number The format parameter and the regex method have similar capabilities but slightly different syntax. As for why:
As for the alternative (not tested):
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I was pretty disappointed to find out that the
faker.phone(<format>)
was deprecated. I tried to use thefaker.helpers.fromRegExp()
method but it generates (at least for me) an odd string as an output. How would one create a phone number let's say beginning with +39 as a country code and followed by some random digits?Beta Was this translation helpful? Give feedback.
All reactions