npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

old-hungarian

v0.2.0

Published

Convert Latin text to Old Hungarian script (Székely rovásírás)

Readme

Old Hungarian(Hungarian runes) Script Converter

A TypeScript/JavaScript library for bidirectional conversion between Latin text and Old Hungarian script (Székely rovásírás). Supports the complete Hungarian alphabet, numbers, and alternative character variants.

Buy Me A Coffee

About Old Hungarian Script

Old Hungarian script (Székely-Hungarian rovás, Hungarian: 𐲥𐳋𐳓𐳉𐳗-𐳘𐳀𐳍𐳀𐳢 𐳢𐳛𐳮𐳁𐳤) is a historical writing system used by Hungarians before the adoption of the Latin alphabet. It's still used today for decorative and cultural purposes, particularly in the Székely Land region of Romania.

Features

  • Bidirectional conversion between Latin and Old Hungarian script
  • Convert Latin text to Old Hungarian script
  • Convert Old Hungarian script back to Latin text
  • Support for all Hungarian letters including digraphs (cs, gy, ly, ny, sz, ty, zs)
  • Number conversion with additive and multiplicative formats
  • Alternative character variants for 'k' and 'ö'
  • Validation and error handling for illegal characters
  • Zero dependencies

Installation

npm install old-hungarian

Quick Start

import { toOldHungarian, fromOldHungarian } from 'old-hungarian';

// Convert to Old Hungarian
toOldHungarian('Szia');
// '𐲥𐳐𐳀'

toOldHungarian('Magyarország');
// '𐲘𐳀𐳎𐳀𐳢𐳛𐳢𐳥𐳁𐳍'

// Convert from Old Hungarian
fromOldHungarian('𐲥𐳐𐳀');
// 'Szia'

fromOldHungarian('𐲘𐳀𐳎𐳀𐳢𐳛𐳢𐳥𐳁𐳍');
// 'Magyarország'

// With options
toOldHungarian('kör 456', { 
  alternativeK: true,
  alternativeO: true,
  numberFormat: 'additive'
});
// '𐳔𐳞𐳢 𐳾𐳾𐳾𐳾𐳽𐳻𐳺'

fromOldHungarian('𐳔𐳞𐳢 𐳾𐳾𐳾𐳾𐳽𐳻𐳺', {
  numberFormat: 'additive'
});
// 'kör 456'

Unicode Support

Important: Old Hungarian script uses Unicode characters from the range U+10C80 to U+10CFF. To properly display these characters:

  • Ensure your system/application uses UTF-8 encoding
  • Use a font that supports Old Hungarian characters (e.g., Noto Sans Old Hungarian, Segoe UI Historic)
  • For web applications, add <meta charset="UTF-8"> to your HTML
  • Some environments may show boxes (□) if the font doesn't support these characters

See the Unicode Standard - Old Hungarian for more information.

Usage Examples

import { 
  toOldHungarian,
  fromOldHungarian,
  validateLatinInput,
  validateOldHungarianInput,
  IllegalCharacterError 
} from 'old-hungarian';

// Basic conversion to Old Hungarian
const result = toOldHungarian('hello');
// '𐳏𐳉𐳖𐳖𐳛'

// Basic conversion from Old Hungarian
const original = fromOldHungarian('𐳏𐳉𐳖𐳖𐳛');
// 'hello'

// Validation before conversion (Latin)
if (validateLatinInput('Szia')) {
  const converted = toOldHungarian('Szia');
}

// Validation before conversion (Old Hungarian)
if (validateOldHungarianInput('𐲥𐳐𐳀')) {
  const converted = fromOldHungarian('𐲥𐳐𐳀');
}

// Error handling
try {
  toOldHungarian('Hello 世界', { strict: true });
} catch (error) {
  if (error instanceof IllegalCharacterError) {
    console.log(`Illegal character '${error.illegalCharacter}' at position ${error.position}`);
  }
}

Documentation

  • API Reference - Complete API documentation with all functions, options, types, and examples
  • Character Mappings - Full reference of Latin to Old Hungarian character mappings

Quick Reference

  • toOldHungarian(text, options?) - Convert Latin text to Old Hungarian script
  • fromOldHungarian(text, options?) - Convert Old Hungarian script to Latin text
  • validateLatinInput(text) - Check if text contains only legal Latin characters
  • findIllegalLatinCharacter(text) - Find first illegal Latin character and its position
  • validateOldHungarianInput(text) - Check if text contains only legal Old Hungarian characters
  • findIllegalOldHungarianCharacter(text) - Find first illegal Old Hungarian character and its position
  • IllegalCharacterError - Custom error class for illegal characters
  • oldHungarianCharacters - Array of character mappings
  • oldHungarianNumbers - Array of number mappings

Resources

License

MIT

Author

János Kiss [email protected]

Repository

https://github.com/MicroKiss/old-hungarian