deinja is a JavaScript library that converts Japanese words into the original forms.
Since this library focuses on lightness and speed rather than accuracy, it doesn't have internal dictionary data. Therefore, it returns multiple candidates, not the sole word.
This library was once a part of Mouse Dictionary. It was detached from the application as a form of a portable library.
npm i deinja
import deinja from "deinja";
deinja.convert("η΄ ζ©γ"); // ["η΄ ζ©γ"]
deinja.convert("θ»’γγ"); // ["θ»’γγ"]
deinja.convert("ζγγ"); // ["ζγγ", "ζγ"]
deinja.convert("ζ»γ«γΎγγ"); // ["ζ»γ¬"]
deinja.convert("η΅γγ£γ¦"); // ["η΅γγ", "η΅γγ€", "η΅γγ"]
deinja.convert("γγΎγ£γ"); // ["γγΎγ", "γγΎγ€", "γγΎγ"]
Apache 2.0
deinja is implemented based on deinflector which is written in Java.