Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function isPassportNumber
import { isPassportNumber } from "https://deno.land/x/validatte@0.7.5/behaviors/common/isPassportNumber.ts";

Check if str is a valid passport number relative to provided ISO Country Code.

Parameters

str: string
countryCode: string

Returns

boolean