fbosch / rune-converter

๐Ÿ”ฎ Convert text written in the latin alphabet to runes in elder futhark.

Home Page:https://www.npmjs.com/package/rune-converter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

rune-converter

a small node package for converting text to the runic alphabet

Installation

npm install rune-converter

Usage

  import transcribe from 'rune-converter'

Functions

transcribe(str, options)

transcribe() is the default function to convert a given string to elder futhark.

Arguments

  • str (String) - the string you wish to convert
  • options (Object) - options that determine the conversion of the string
    • punctuation - determines what symbol to transcribe ' . ' to

      key value
      cross (default) แ›ญ
      double แ›ฌ
      single แ›ซ
    • spacing - determines what symbol to transcribe spacing to

      key value
      normal whitespace
      cross แ›ญ
      double (default) แ›ฌ
      single แ›ซ

Examples

  var str = 'Lorem ipsum dolor sit amet.'

  transcribe(str) // แ›šแ›Ÿแšฑแ›–แ›—แ›ฌแ›แ›ˆแ›‹แšขแ›—แ›ฌแ›žแ›Ÿแ›šแ›Ÿแšฑแ›ฌแ›‹แ›แ›แ›ฌแšจแ›—แ›–แ›แ›ญ

  transcribe(str, { punctuation: 'single' }) // แ›šแ›Ÿแšฑแ›–แ›—แ›ฌแ›แ›ˆแ›‹แšขแ›—แ›ฌแ›žแ›Ÿแ›šแ›Ÿแšฑแ›ฌแ›‹แ›แ›แ›ฌแšจแ›—แ›–แ›แ›ซ

  transcribe(str, { spacing: 'normal' }) // แ›šแ›Ÿแšฑแ›–แ›— แ›แ›ˆแ›‹แšขแ›— แ›žแ›Ÿแ›šแ›Ÿแšฑ แ›‹แ›แ› แšจแ›—แ›–แ›แ›ญ

About

๐Ÿ”ฎ Convert text written in the latin alphabet to runes in elder futhark.

https://www.npmjs.com/package/rune-converter

License:MIT License


Languages

Language:JavaScript 100.0%