identifiers

Checks whether IBANs and tax or VAT registration numbers are well formed, without contacting any register.

Built and tested in the harness, and not in the public repository yet. The install line and the source link appear here when it is.

What it is

identifiers.

Validators for the identifiers a form asks for: IBANs, checked for the country's length and the ISO 13616 mod-97 check, and tax or VAT registration numbers, checked for per-country shapes. The functions are pure, with no dependencies and no network calls. iban::validate returns the IBAN normalised, and a country not in the table is refused. Registration numbers cover EU member-state VAT, UK VAT, Australian ABN, Singapore UEN, Indonesian NPWP, Dutch BTW and KvK, and US EIN. No check is made against any authority's register, so a valid result means well formed, not issued.

From the crate’s own README.

History

Changelog.

Not released yet. Its changelog starts with its first release.

One of 95 crates in the harness, all of them MIT.