Generates a random phone number.
Optional
options: { style?: "human" | "national" | "international" }Options object
Optional
style?: "human" | "national" | "international"Style of the generated phone number:
'human'
: (default) A human-input phone number, e.g. 555-770-7727
or 555.770.7727 x1234
'national'
: A phone number in a standardized national format, e.g. (555) 123-4567
.'international'
: A phone number in the E.123 international format, e.g. +15551234567
Module to generate phone-related data.
Overview
For a phone number, use
number()
. Many locales provide country-specific formats.