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

x/danet/validation.ts>isPassportNumber

The most mature backend framework for Deno. Create awesome HTTP and WebSocket server as well as KVQueue workers !
Latest
function isPassportNumber
import { isPassportNumber } from "https://deno.land/x/danet@2.4.1/validation.ts";

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

Parameters

str: string
countryCode: string

Returns

boolean