core-utils
    Preparing search index...

    Module @clipboard-health/phone-number - v2.13.3

    @clipboard-health/phone-number

    Phone number utility functions.

    npm install @clipboard-health/phone-number
    
    import { randomPhoneNumber } from "@clipboard-health/phone-number";

    const nationalPhoneNumber = randomPhoneNumber();
    const internationalPhoneNumber = randomPhoneNumber({ international: true });

    randomPhoneNumber produces valid-looking NANP numbers for synthetic identities. The numbers are not reserved, so callers must suppress outbound routing.

    See package.json scripts for a list of commands.

    FormatPhoneNumberParams
    RandomPhoneNumberOptions
    IsValidPhoneNumberParams
    formatPhoneNumber
    formatPhoneNumberOrThrow
    isValidPhoneNumber
    randomPhoneNumber