npm i sinhala-unicode
## or
yarn add sinhala-unicode
let convert = require("sinhala-unicode")
let {
amaleeToUnicode, //Amalee --> Unicode
bamaniToUnicode, //Bamini --> Unicode
dlManelToUnicode, //DL-Manel-bold. --> Unicode
fmAbayaToUnicode, //FM Abhaya --> Unicode
kaputaToUnicode, //kaputadotcom --> Unicode
tanglishToUnicode, //TanGlish (Phonetic) transliterated --> Tamil Unicode
thibusToUnicode, //Thibus Sinhala --> Unicode
unicodeToBamini, //Unicode --> Bamini
unicodeToDlManel, //Unicode --> DL-Manel-bold.
unicodeToKaputa, //Unicode --> kaputadotcom
unicodeToTiptaka, //Unicode --> Tipitaka_Sinhala1
singlishPhoneticToUnicode, //SinGlish (Phonetic) transliterated --> Sinhala Unicode
singlishToUnicode, //SinGlish transliterated --> Sinhala Unicode
} = convert
var result;
result = convert.kaputaToUnicode("rvQ[E m@n`j~")
console.log(result) //=> රවිඳු මනොජ්
result = convert.unicodeToKaputa("රවිඳු මනොජ්")
console.log(result) //=> rvQ[E m@n`j~
result = convert.singlishPhoneticToUnicode("manoj")
console.log(result) //=> මනෝජ්
- Language Technology Research Laboratory - University of Colombo School of Computing. (2011)