greeklish
A tool to convert Greeklish to Greek and vice versa with small size and zero dependencies.
Greeklish, a combination of the words Greek and English is the Greek language written using the Latin alphabet.
It is commonly use in texting to write faster and hide grammar mistakes among Greeks.
Usage:
const gl =
Functions
- toGreeklish()
- toGreek()
Examples
const gl = const greeklishText = gl// Beltiwmenos shmera o kairos. const greekText = gl// Βελτιωμενος σημερα ο καιρος.
Validation
Both functions expect a string with atleast length of 1. Make sure you pass a valid string, otherwise the functions will throw an error.
const gl = const greeklishText = gl// Error: Value must be a string with at least one character. const greekText = gl// Error: Value must be a string with at least one character.
Tests
Clone the repo, npm install
, and run npm test