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 🙏

© 2024 – Pkg Stats / Ryan Hefner

riimut

v0.9.1

Published

Transform latin letters to runes & vice versa. Includes transformers for main runic alphabets

Downloads

52

Readme

Riimut

Transform latin letters to runes & vice versa. TypeScript version.

Includes transformers for main runic alphabets:

  • Elder Futhark
  • Younger Futhark
  • Staveless Futhark
  • Medieval Futhork
  • Futhorc (Anglo-Frisian runes)

Install

npm install riimut

Usage

The package exports all dialect variants as their own thing.

import { youngerFuthark, elderFuthark, medievalFuthork, stavelessFuthark, futhorc } from 'riimut'

You can either transform runes to text, or text to runes. All modules contain their own lettersToRunes and runesToLetters methods.

Younger Futhark
import { youngerFuthark } from 'riimut'

// Old Norse text from Old Groms runestone.
const result = youngerFuthark.lettersToRunes('auk tani karþi kristna')

console.log(result) // ᛅᚢᚴ ᛏᛅᚾᛁ ᚴᛅᚱᚦᛁ ᚴᚱᛁᛋᛏᚾᛅ
import { youngerFuthark } from 'riimut'

const result = youngerFuthark.runesToLetters('ᚠᚢᚦᛅᚱᚴ')

console.log(result) // fuþark

Style variants:

Younger Futhark contains two rune sets: long branch (danish) and short twig (Norwegian / Swedish)

import { youngerFuthark } from from 'riimut'

const letters = "aábcdðeéfghiíjklmnoópqrstþuúvwxyýzåäæöøǫþ";

// Comes with named functions per style.
const longBranch = youngerFuthark.lettersToLongBranchRunes(letters);
const shortTwig = youngerFuthark.lettersToShortTwigRunes(letters);

console.log(longBranch); // ᛅᛅᛒᛋᛏᚦᛁᛁᚠᚴᚼᛁᛁᛁᚴᛚᛘᚾᚢᚢᛒᚴᚱᛋᛏᚦᚢᚢᚢᚢᛋᚢᚢᛋᚢᛅᛅᚢᚢᚢᚦ
console.log(shortTwig);  // ᛆᛆᛒᛌᛐᚦᛁᛁᚠᚴᚽᛁᛁᛁᚴᛚᛘᚿᚢᚢᛒᚴᚱᛌᛐᚦᚢᚢᚢᚢᛌᚢᚢᛌᚢᛆᛆᚢᚢᚢᚦ

// Default function can also be called with variant enum to define the runeset.
const longBranchResult = youngerFuthark.lettersToRunes(letters, youngerFuthark.Variant.longBranch)
const shortTwigResult = youngerFuthark.lettersToRunes(letters, youngerFuthark.Variant.shortTwig)
Elder Futhark

Latin text to runes:

import { elderFuthark } from 'riimut'

// Proto-norse text from 4th century axe in Jutland
const result = elderFuthark.lettersToRunes('wagagastiz alu wihgu sikijaz aiþalataz')

console.log(result) // ᚹᚨᚷᚨᚷᚨᛋᛏᛁᛉ:ᚨᛚᚢ:ᚹᛁᚻᚷᚢ:ᛋᛁᚲᛁᛃᚨᛉ:ᚨᛁᚦᚨᛚᚨᛏᚨᛉ

Runes to latin text:

import { elderFuthark } from 'riimut'

const result = elderFuthark.runesToLetters('ᚠᚢᚦᚨᚱᚲ')

console.log(result) // fuþark
Staveless Futhark

Latin text to runes:

import { stavelessFuthark } from 'riimut'

// From Hög runestone 12.
const result = stavelessFuthark.lettersToRunes('lit rita stin þina')

console.log(result) // ⸌ᛁ⸍:⡄ᛁ⸍⸝:╵⸍ᛁ⸜:וᛁ⸜⸝

Runes to latin text:

import { stavelessFuthark } from 'riimut'

const result = stavelessFuthark.runesToLetters('⸌ᛁ⸍:⡄ᛁ⸍⸝:╵⸍ᛁ⸜:וᛁ⸜⸝')

console.log(result) // lit Rita stin þina
Medieval Futhork

Latin text to runes:

import { medievalFuthork } from 'riimut'

const result = medievalFuthork.lettersToRunes('lorem ipsum dolor sit amet')

console.log(result) // "ᛚᚮᚱᛁᛘ:ᛁᛕᛋᚢᛘ:ᚦᚮᛚᚮᚱ:ᛋᛁᛏ:ᛆᛘᛁᛏ

Runes to latin text:

import { medievalFuthork } from 'riimut'

const result = medievalFuthork.runesToLetters('ᛚᚮᚱᛁᛘ:ᛁᛕᛋᚢᛘ:ᚦᚮᛚᚮᚱ:ᛋᛁᛏ:ᛆᛘᛁᛏ')

console.log(result) // lorem ipsum dolor sit amet
Futhorc (Anglo-Frisian runes)

Latin text to runes:

import { futhorc } from 'riimut'

// From 8th century Franks Casket, in late West Saxon.
const result = futhorc.lettersToRunes('fisc.flodu.ahofonferg | enberig |')

console.log(result) // ᚠᛁᛋᚳ.ᚠᛚᚩᛞᚢ.ᚪᚻᚩᚠᚩᚾᚠᛖᚱᚷ:|:ᛖᚾᛒᛖᚱᛁᚷ:|

Runes to latin text:

import { futhorc } from 'riimut'

const result = futhorc.runesToLetters('ᚠᚢᚦᚩᚱᚳ')

console.log(result) // fuþorc

About runes

The Elder Futhark, also known as the Older Futhark, is the oldest form of the runic alphabets. It was a writing system used by Germanic peoples for Northwest Germanic dialects in the Migration Period. It was used to write Proto-Norse language, predecessor of Old Norse.

The Younger Futhark, also called Scandinavian runes, is a runic alphabet and a reduced form of the Elder Futhark, with only 16 characters. It was in use from about the 9th century onwards.

Staveless Futkar runes were simplification of Younger Futhark, a runic alphabet of the viking age. In order to create the staveless runes, vertical marks (or staves) were dropped from individual runes.

The futhork, or the medieval runes, was a Scandinavian runic alphabet that evolved from the Younger Futhark at the end of the Viking Age. Used roughly from 12th to 17th centuries.

The Futhorc, also known as Anglo-Saxon runes, are runes used by the early Anglo-Saxons as an alphabet in their writing system. Based on Elder Futhark, they were in use from 5th through 11th centuries.