strongPassword | static strongPassword(options?: { minScore?: 0 | 1 | 2 | 3 | 4 }): ValidatorFn | ValidatorFn | Returns ValidatorFn that fails with { weakPassword: { score, required } } when entropy score < minScore (default 2). |
safeHtml | static safeHtml(options?: HtmlSanitizerOptions): ValidatorFn | ValidatorFn | Fails with { unsafeHtml: true } when sanitization would alter the input. Allowlist is configurable. |
safeUrl | static safeUrl(options?: { schemes?: readonly string[] }): ValidatorFn | ValidatorFn | Fails with { unsafeUrl: true } for malformed URLs or schemes outside the allowlist (default: http, https). |
noScriptInjection | static noScriptInjection(): ValidatorFn | ValidatorFn | Fails with { scriptInjection: true } for |
noSqlInjectionHints | static noSqlInjectionHints(): ValidatorFn | ValidatorFn | Fails with { sqlInjectionHint: true } for common SQLi sentinels — defense-in-depth; parameterize server-side queries. |