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

x/danet/validation.ts>isPassportNumber

A Savory web framework for Deno heavily inspired by Nest
Go to Latest
function isPassportNumber
import { isPassportNumber } from "https://deno.land/x/danet@1.5.0/validation.ts";

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

Parameters

str: string
countryCode: string

Returns

boolean