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

number-to-arabic-words

v1.5.3

Published

convert numbers to arabic words made with typescript so it fast and maintainable - تحويل الارقام الي كلمات عربيه أداه متجدده بأستمرار و سريعه

Downloads

1,084

Readme

npm version example workflow

Numbers To Arabic Words

is a library to transform the numbers into Arabic words without any external dependencies and it's so fast and stable because it's build in typescript.

Why do you Need to use it ?

  • Supporting Browser and NodeJs .
  • Easy installation .
  • Unlimited Updates and Support .
  • Made by 💖 to be Free forever .
  • Based on Arabic number rules Arabic Numbers Rules المعجم
  • Support points like that 100.52
  • Customizable 🎒💻
  • Support unlimited number length more than 100000000000000000000 "كوادرليون" 😲
  • Just only one function toArabicWord(1000) do this magic 👌

How To Install ?

Browser

<script src="https://cdn.jsdelivr.net/npm/number-to-arabic-words@latest/dist/index.js"></script>
<script>
    toArabicWord(1000)
</script>

Npm

    npm i number-to-arabic-words

Yarn

    yarn add number-to-arabic-words

NodeJs

const NumbersToArabicWords = require('dist/index-node.js')
NumbersToArabicWords.toArabicWord(1000)

Typescript


import { toArabicWord } from 'number-to-arabic-words/dist/index-node.js';
toArabicWord(1000);

React

Check this discussion How to use this library in Reactjs ? By @RedaTheCeo

Examples

| Number | Result | | ------------------------ | ------------------------------------------ | | toArabicWord(1000) | ألف | | toArabicWord(100000) | مائه ألف | | toArabicWord(2000000) | مليونان | | toArabicWord(102030) | مائه و أثنان ألف و ثلاثون | | toArabicWord(5000.65) | خمس آلاف فاصل خمس و ستون | | toArabicWord(200.23) | مائتان فاصل ثلاث و عشرون | | toArabicWord(1.00) | مائة فاصل تسع آلاف و خمسمائة و ثمان و ستون | | toArabicWord(100.9568) | مائة فاصل تسع آلاف و خمسمائة و ثمان و ستون | | toArabicWord(100.52) | مائه فاصل أثنان و خمسون |

Advanced

  • You can change the config by using the global object arabicWord as example ..
arabicWord.setConfig({
    delimiter: '/',
    strict: true,
})

All the options

| | Option | Type | Description | | --- | ----------------------- | ------- | ---------------------------------------------------- | | 1 | delimiter | string | you can change instead of "فاصل" to be anything else | | 2 | strict | boolean | get the result as Json | | 3 | numberSectionsDelimiter | string | change "و" to be anything else |

More

Docs

Please Let me know about any bug or feature and consider it done. Thank you 😍🚀💖 ..