A lightweight utility for converting names between Hungarian and Western formatting conventions. Current version 1.0.0, stable and simple, no external dependencies. It handles compound surnames and preserves casing. Alternatives exist as part of larger internationalization libraries, but this is a focused, zero-dependency solution for Hungarian name formatting.
npm install hungarian-nameformatNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates converting names between Hungarian and Western formats, including compound surnames.
Be aware that the dash is not a delimiter; only space separates first and last name.
Ensure names are properly capitalized before passing to the functions, or post-process the result.
Validate that the name has exactly one space and no extra dashes, or split manually.
Use import syntax or ensure your project is configured for ESM.
Ensure the argument is a string: toHungarianFormat(String(name))
Pass only a single space-separated first and last name, and avoid multiple dashes.
No dependency data recorded yet.