The most comprehensive financial library for TypeScript.

A powerful TypeScript/JavaScript library for financial validations and operations — starting with lightning-fast IBAN validation & formatting, with more tools on the way.

$
pnpm add @rivo-gg/geld
01import { iban } from "@rivo-gg/geld"
02
03export function Component() {
04
05 const validateIban = (input: string) => {
06 if (!input) return console.error("Enter an IBAN")
07
08 iban.isValid(input)
09 ? console.info("Valid IBAN")
10 : console.error("Invalid IBAN")
11 }
12
13 return (
14 <Input
15 onBlur={(e) => validateIban(e.target.value)}
16 placeholder="Insert an IBAN"
17 />
18 )
19}