m3dood
v2.0.0
Published
A function to get the grammatically correct "m3dood" for a number in Arabic.
Downloads
20
Readme
$ yarn add m3dood$ npm i m3doodimport m3dood from 'm3dood';
// initilize your ma3dood
const books = m3dood("كتاب", "كتابان", "كتب");
const libraries = m3dood("مكتبة", "مكتبتان", "مكتبات");
// use it
console.log(books(3), libraries(2));this will return
"3 كتب"
"مكتبتان"This project is licensed under the MIT License
