Kakasi Japanese Transliteration for Node.js
git clone https://github.com/loretoparisi/kakasi.js.git
To transliterate a sentence use the transliterate
api.
var kk = new Kakasi({
debug: false
});
kk.transliterate( "退屈であくびばっかしていた毎日" )
.then(results => {
console.log("----------\n%s\n----------",results);
})
.catch(error => {
console.error(error);
});
this will end up in taikutsu deakubibakkashiteita mainichi