import { isEmail } from "#fune/validation.email@^1";
Suites · validation-basics
Validation basics
Check and normalise what people type: email, phone, postcode, names, bank details and check-digit identifiers.
14 capabilities (4 core, 10 optional) and 3 gaps, in build order. Put each line in the file that calls it, then fune build.
Core coverage: 57.1%
4 of 7 needs met by verified capabilities. The needs are this suite's 4 core members and its 3 named gaps; a core member counts when a version of it is verified (by the sandbox, or the registry's seed) and not yanked, and a gap never counts. Optional members are not needs.
Baseline: a hand-written app with no suite meets 0 of the same 7. Method fune-coverage/1, computed 2026-11-22T20:51:33.606Z.
1. Contact details
Check and normalise a person's contact details before storing them.
import { validatePhoneE164 } from "#fune/validation.phone-e164@^2";
import { validateUkPostcode } from "#fune/validation.uk-postcode@^2";
import { normaliseName } from "#fune/text.normalise-name@^1";
import { normaliseEmail } from "#fune/auth.normalise-email@^1";
2. Bank details
Check payee and customer bank details before money moves.
import { isIban } from "#fune/validation.iban@^1";
import { validateBic } from "#fune/validation.bic@^1";
import { validateUkSortCodeAccount } from "#fune/validation.uk-sort-code-account@^3";
import { parseUkModulusTable } from "#fune/validation.uk-modulus-table@^1";
3. Identifiers and check digits
Catch mistyped reference numbers by their check digits.
import { isLuhn } from "#fune/validation.luhn@^1";
import { validateUkCompanyNumber } from "#fune/validation.uk-company-number@^2";
import { validateLei } from "#fune/validation.lei@^1";
import { validateGtin } from "#fune/validation.gtin@^1";
4. Displaying sensitive values
Show stored identifiers without exposing them.
import { mask } from "#fune/text.mask@^1";
Gaps
What this kind of app usually needs that Functional Weave does not have yet: write these yourself, or use a service.
- address-lookup Turning a postcode into a list of addresses (Royal Mail PAF or a lookup API) is network work and not in caps.
- email-deliverability Whether a mailbox exists (MX lookups, a confirmation email): validation.email checks the syntax only.
- vocalink-data The Vocalink modulus tables themselves: download them from Pay.UK under its terms; caps parses them but does not ship them.