Skip to content

ezralazuardy/aksara

Repository files navigation

Build CodeQL Analysis NPM License NPM Unpacked Size NPM Unpacked Size NPM Type Definitions

ꦲ aksara


image

There were (two) emissaries. They began to fight.
Their valor was equal. They both fell dead.


translate("hana caraka"); // ꦲꦤ ꦕꦫꦏ

Aksara is a simple package that helps you to translate your text into Javanese Script or also known as Aksara Jawa, which is one of the most beautiful scripts in the world. You can translate a latin text into Javanese Script or vice-versa in just one line of code.

The translated text will be formatted as Unicode string of Javanese Script characters that can be used in any text editor or web browser, without any specific font requirement.

It's also typescript compatible, so you can use it in any javascript or typescript project.

Demo App: https://aksara-demo.lazuardy.tech

Reference: Wikipedia, Matador Network


🚀 Getting Started

It's only require 2 simple steps to get started.

Install the package

npm install @ezralazuardy/aksara

And use it!

import { translate } from "@ezralazuardy/aksara";

const result = translate("hana caraka"); // ꦲꦤ ꦕꦫꦏ

For advanced usage, please read the documentation below.


🔄 Revert Translation

If you want to revert the translation, you can just use the translate function again.

import { translate } from "@ezralazuardy/aksara";

const result = translate("ꦲꦤ ꦕꦫꦏ"); // hana caraka

No need to use other function. Simple, right?


📖 Documentation

A proper documentation is still in progress 🥲

Written in Typescript. Heavily inspired by @bennylin.