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

x/phonenumber/index.d.ts>getNumberFrom

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

Get a phonenumber string as it would be called from another country.

Parameters

parsedPhoneNumber: ParsedPhoneNumberValid

A phone number object as returned from parsePhoneNumber()

optional
regionCode: string

Region code of the country to call from