# thaana-transliterator

> A simple module to transliterate thaana (latin) to unicode

Latest version **0.0.2** (published 2020-06-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install thaana-transliterator
pnpm add thaana-transliterator
yarn add thaana-transliterator
bun add thaana-transliterator
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2020-06-08 |
| First published | 2020-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Yameen Mohamed |
| Maintainers | yaameen |

## Links

- npm: https://www.npmjs.com/package/thaana-transliterator
- npm.io page: https://npm.io/package/thaana-transliterator

## Dependencies (1)

- [mocha](https://npm.io/package/mocha.md) ^7.2.0

## Recent versions

- 0.0.2 (latest) — 2020-06-08
- 0.0.1 — 2020-06-08

## README

Thaana package currently converts latin to unicode. This package is sort of a port of [thaana_conversions_php by Jawish](https://github.com/jawish/thaana_conversions_php) in **Javascript**
Currently it only converts the latin used with fonts like A_Faseyha in the olden days. 

## TODO
The following methods will be added (maybe renamed).

- **convertUtf8ToUnicodeIntegers()** Convert UTF-8 data to Unicode character integer representations
- **convertUtf8ToAscii()** Convert UTF-8 data to Ascii
- **convertUtf8ToEntities()** Convert UTF-8 data to HTML entities
- **convertEntitiesToUnicodeIntegers()** Convert HTML Unicode entitied string to Unicode Integer characters array
- **convertEntitiesToUtf8 C**onvert HTML Unicode entities to UTF-8
- **convertEntitiesToAscii()** Convert HTML Unicode entities to Dhivehi Ascii equivalents
- **convertUnicodeIntegersToUtf8()** Convert Unicode Integer array to UTF
- **convertUnicodeIntegersToEntities()** Convert Unicode char integers to HTML entities
- **convertUnicodeIntegersToAscii()** Convert Unicode char integers to Ascii
- **convertAsciiToUtf8()** Convert Ascii Thaana to UTf-8
- **convertAsciiToEntities()** Convert Ascii Thaana to Unicode HTML entities
- **convertAsciiToUnicodeIntegers()** Convert Ascii Thaana to an array of Unicode integers
- **convertLatinToAscii()** Converts Dhivehi written in Latin to Thaana in . Use with the convertAsciiTo* functions to convert to Thaana script formats.
- **convertAsciiToLatin()** Converts Dhivehi written in Ascii representation to Latinized Dhivehi.


## Usage
```javascript

// Load the class
const Thaana = require('./index')

// Create an instance
thaana = new Thaana();

// Example: Converting latin to equivalent unicode
console.log(thaana.toUnicode('udwmcawHum'))

```

---
_Source: https://npm.io/package/thaana-transliterator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
