UNPKG

phone-number-generator-js

Version:

Generates a random phone number following the E.164 international standard

5 lines (4 loc) 333 B
import { CountryPhoneDataConfig } from "./config"; import { CountryPhoneData } from "./countryPhoneData"; export default function generatePhoneNumber(config?: CountryPhoneDataConfig): string; export declare function isPhoneNumberValid(phoneNumber: string, countryPhoneData?: CountryPhoneData, withoutCountryCode?: boolean): boolean;