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 🙏

© 2024 – Pkg Stats / Ryan Hefner

arabic2franko

v1.0.3

Published

converts the arabic letters to franko

Downloads

3

Readme

arabic2franko

converting Arabic to Franko.

sensitive to diacritical mark.

Installation

npm i arabic2franko

Usage

  • node.js

const arabic2franko = require('arabic2franko');
  • ES6 Modules

import arabic2franko from 'arabic2franko';
// OR
import * as arabic2franko from 'arabic2franko';

let
  text = `لوريم إيبسوم(Lorem Ipsum) هو ببساطة نص شكلي (بمعنى أن الغاية هي الشكل وليس المحتوى) ويُستخدم في صناعات المطابع ودور النشر. كان لوريم إيبسوم ولايزال المعيار للنص الشكلي منذ القرن الخامس عشر عندما قامت مطبعة مجهولة برص مجموعة من الأحرف بشكل عشوائي أخذتها من نص، لتكوّن كتيّب بمثابة دليل أو مرجع شكلي لهذه الأحرف. خمسة قرون من الزمن لم تقضي على هذا النص، بل انه حتى صار مستخدماً وبشكله الأصلي في الطباعة والتنضيد الإلكتروني. انتشر بشكل كبير في ستينيّات هذا القرن مع إصدار رقائق "ليتراسيت" (Letraset) البلاستيكية تحوي مقاطع من هذا النص، وعاد لينتشر مرة أخرى مؤخراَ مع ظهور برامج النشر الإلكتروني مثل "ألدوس بايج مايكر" (Aldus PageMaker) والتي حوت أيضاً على نسخ من نص لوريم إيبسوم.
`,
  arr = ["أ", "ح", "م", "د"]

console.log(arabic2franko(text))
/*
lwrym eybswm(Lorem Ipsum) hw bbsa6h n9 4kly (bm3na an al3'ayh hy al4kl wlys alm7twa) wyost5dm fy 9na3at alm6ab3 wdwr aln4r. kan lwrym eybswm wlayzal alm3yar lln9 al4kly mnd' al2rn al5ams 34r 3ndma 2amt m6b3h mghwlh br9 mgmw3h mn ala7rf b4kl 34waey a5d'tha mn n9، ltkwwn ktyyb bmthabh dlyl aw mrg3 4kly lhd'h ala7rf. 5msh 2rwn mn alzmn lm t29'y 3la hd'a aln9، bl anh 7ta 9ar mst5dman wb4klh ala9ly fy al6ba3h waltn9'yd alelktrwny. ant4r b4kl kbyr fy stynyyat hd'a al2rn m3 e9dar r2ae2 "lytrasyt" (Letraset) alblastykyh t7wy m2a63 mn hd'a aln9، w3ad lynt4r mrh a5ra mo5raa m3 zhwr bramg aln4r alelktrwny mthl "aldws bayg maykr" (Aldus PageMaker) walty 7wt ay9'an 3la ns5 mn n9 lwrym eybswm.
*/
console.log(arabic2franko(arr))
// a7md
console.log(arabic2franko('أُحِبُ البَطيخ كثيراً'))
// o7ebo alba6y5 kthyran
console.log(arabic2franko())
// يا اسطا فين النص اللي هنحوله ؟