Skip to content

library to convert ascii number like 3456 to geez number ፴፬፻፶፮

License

Notifications You must be signed in to change notification settings

geezify/geezify-js

Repository files navigation

Geezify-js From Ethiopia

Build Status Scrutinizer Code Quality Coverage Status NPM Download npm

This package is a library to convert ascii number like '3456' to geez number '፴፬፻፶፮' and vise versa.

Ge'ez (ግዕዝ) is an ancient South Semitic language that originated in Eritrea and the northern region of Ethiopia in the Horn of Africa. It later became the official language of the Kingdom of Aksum and Ethiopian imperial court.

click here to read more.

Installation

Node

npm install geezify-js

Browser

<script src="https://cdn.jsdelivr.net/gh/geezify/geezify-js/dist/geezify.min.js"></script>

Usage

const Geezify = require("geezify-js") // For Node only

geez = Geezify.create();

console.log(geez.toGeez(123));              // ፻፳፫
console.log(geez.toGeez(1234));             // ፲፪፻፴፬
console.log(geez.toGeez(1986));             // ፲፱፻፹፮
console.log(geez.toGeez(1000000));          // ፻፼

// or you can even do the reverse
// this is the tricky part you wouldn't see else where
// at least for now

console.log(geez.toAscii('፻፳፫'));           // 123
console.log(geez.toAscii('፲፪፻፴፬'));         // 1234
console.log(geez.toAscii('፲፱፻፹፮'));        // 1986
console.log(geez.toAscii('፻፼'));          // 1000000

License

Geezify-js is released under the MIT Licence. See the bundled LICENSE file for details.