The library and its Arabic engine
requiredNumbers, amounts in 188 currencies, dates, times, fractions and ordinals in Arabic words, with full i'rab and tashkeel; amounts in two languages; NumberFormat.
import arqam from "arqam";gzip: 80.4 KB
The same files as the npm package arqam. Take the library, then the parts you need. Each part is a readable ES module and its TypeScript declarations. No dependencies, no network.
Numbers, amounts in 188 currencies, dates, times, fractions and ordinals in Arabic words, with full i'rab and tashkeel; amounts in two languages; NumberFormat.
import arqam from "arqam";Numbers and amounts in English words, UK or US style, with Only, brackets and fractions.
import "arqam/en"; // arqam.enFinds the numbers written in Arabic words in any text and writes them in digits; verifies an amount in words against its figure.
import wordsToNumbers from "arqam/words";The case of each word of a number in words, and the rule behind it.
import arqamExplain from "arqam/explain";252 units for NumberFormat with style "unit": metres, kilograms, litres and more.
import "arqam/units";import arqam from "./arqamAR.mjs";. The other parts import ./arqamAR.mjs from their own folder, so keep them beside it.<script src> tag without modules, the plain scripts are in src/ and en/ on GitHub.<script type="module" integrity="…">| File | Size | Integrity (SRI) |
|---|---|---|
arqamAR.mjs | 261.8 KB | sha384-kq026g2535BV5I/I6VSmsvgMTmBA2fUdY6TolhjOQTGiu9x+kPrOGX4Ck+iwLkvN |
arqamEN.mjs | 57.4 KB | sha384-+0/aTDNVNBBhu2s4mumDVDDM7Avn5mdHdpUUoq4W7LdWerYjfHPxSpQik7CHuVZC |
arqamWordsToNumbers.mjs | 106.8 KB | sha384-nAQYcYQ2EGaXIUollp1v52mHiH0q/kBanTmO8Q/wbIxqM8azcrbhioomh+RMiNIf |
arqamExplain.mjs | 120.0 KB | sha384-6XyV//Ef3AKmPWpC1FJRhv65XnkBNWxRkO9ye+UYzzvwAiTFOly3BbT8ynAc3qjz |
arqamUnits.mjs | 77.9 KB | sha384-gx9iakzsnsPiN2mVYkO9DtdlkWaABhOY+ytt0b/fYapEUGof7AOQuoyhwH0siShN |