Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/phonenumber/index.d.ts>findNumbers

Google's libphonenumber pre-compiled with the closure compiler
Latest
function findNumbers
import { findNumbers } from "https://deno.land/x/phonenumber@v7.2.0/index.d.ts";

Find phone numbers in text.

If the text is expected to have phone numbers for a certain region code, the option defaultRegionCode can be set. Phone numbers without the international prefix + will then be found too.

Leniency can be specified using the leniency option, in which case maxTries needs to be set too.

Parameters

text: string
optional
options: FindNumbersOptions