npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

arabic-malayalam-transliterator

v1.0.8

Published

A lightweight and efficient JavaScript library for transliterating Malayalam text into Arabic script

Downloads

143

Readme

Arabic Malayalam Transliterator

A simple, fast, and accurate library for converting Malayalam text into Arabic Malayalam script — works seamlessly in Node.js, browsers, and React apps.

Easily bring Malayalam content to Arabic readers with clean, context-aware transliteration. Lightweight, dependency-free, and built to work perfectly in any JavaScript environment.

Installation

npm install arabic-malayalam-transliterator

Usage

Import and use directly in your TypeScript or JavaScript project.

ESM / TypeScript


import transliterateToArabic from 'arabic-malayalam-transliterator';

const arabicText = transliterateToArabic("നമസ്കാരം");
console.log('Arabic Script:', arabicText);

CommonJS


const transliterateToArabic = require('arabic-malayalam-transliterator').default;

const arabicText = transliterateToArabic("സുഖമാണോ?");
console.log('Arabic Script:', arabicText);

Example

Transliterate Malayalam text into Arabic:


import transliterateToArabic from 'arabic-malayalam-transliterator';

const malayalam = "കേരളം സുന്ദരം";
const arabic = transliterateToArabic(malayalam);
console.log(arabic);

Output:

كيرلم سندرم

Batch Transliteration

You can easily process multiple Malayalam phrases at once:


const words = ["മലയാളം", "സുഹൃത്ത്"];
const result = words.map(w => transliterateToArabic(w));

console.log(result);

Output:

[ 'مليالم', 'سهرث' ]

Advanced Usage

Use the library in a Node.js backend or in browser-based applications. It has no external dependencies, making it ideal for lightweight projects.

For example, using Express.js:

import express from 'express'; import transliterateToArabic from 'arabic-malayalam-transliterator';


const app = express();

app.get('/transliterate', (req, res) => {
  const text = req.query.text || '';
  const arabic = transliterateToArabic(text);
  res.json({ input: text, arabic });
});

app.listen(3000, () => console.log('Server running on port 3000'));

Features

✅ Lightweight and dependency-free

✅ Written in TypeScript with complete type definitions

✅ Supports all Malayalam vowels, consonants, and ligatures

✅ Handles complex clusters and diacritics

✅ Converts Malayalam numerals

✅ Fast and accurate transliteration

✅ Works in both Node.js and browser environments

API Reference transliterateToArabic(text: string): string

Converts the provided Malayalam text into Arabic script.

Parameter Type Description text string Malayalam text to be transliterated

Returns: string — Arabic script representation of the input Malayalam text.

Contributing

Feel free to open issues or submit pull requests on GitHub. New rules and exceptions for Malayalam-to-Arabic mappings are welcome.

License

ISC © 2025 Muhammed Naswih