@eleven-am/faker
    Preparing search index...

    Interface PhoneOptions

    interface PhoneOptions {
        countryCode?: boolean;
        format?: string;
        locale?: string;
    }
    Index

    Properties

    countryCode?: boolean

    Prepend a random country code (e.g., '+1', '+44'). Defaults to false.

    format?: string

    Specific format string (e.g., 'XXX-XXX-XXXX', '0X XX XX XX XX'). 'X' replaced by digits. Uses locale default if omitted.

    locale?: string

    Target locale (e.g., 'en-US', 'fr-FR'). Defaults to context locale or 'en-US'.