UNPKG

phone-number-lookup

Version:

phone-number-lookup is TS written library that provides information about a phone number, such as: Country, Prefix, Type (Mobile/Fixed/VoIP), Carrier etc. Every data is processed locally, so no internet connection is needed. Made primarily for personal-us

6 lines (4 loc) 135 B
import { E164_REGEX } from './constants'; export function validateE164(number: string): boolean { return E164_REGEX.test(number); }