GitHubArqam

Download Arqam 2.0.0

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.

The library and its Arabic engine

required

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";
gzip: 80.4 KB

English

optional

Numbers and amounts in English words, UK or US style, with Only, brackets and fractions.

import "arqam/en"; // arqam.en
gzip: 18.9 KB

Words back to numbers

optional

Finds 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";
gzip: 29.6 KB

«اشرح»: the grammar of each word

optional

The case of each word of a number in words, and the rule behind it.

import arqamExplain from "arqam/explain";
gzip: 31.2 KB

Without npm

  • Put the files in one folder and import them by their path: import arqam from "./arqamAR.mjs";. The other parts import ./arqamAR.mjs from their own folder, so keep them beside it.
  • For a <script src> tag without modules, the plain scripts are in src/ and en/ on GitHub.
  • Licence: MIT (LICENSE). The integrity hashes of the files as text: SRI.txt.
Integrity hashes for <script type="module" integrity="…">
FileSizeIntegrity (SRI)
arqamAR.mjs261.8 KBsha384-kq026g2535BV5I/I6VSmsvgMTmBA2fUdY6TolhjOQTGiu9x+kPrOGX4Ck+iwLkvN
arqamEN.mjs57.4 KBsha384-+0/aTDNVNBBhu2s4mumDVDDM7Avn5mdHdpUUoq4W7LdWerYjfHPxSpQik7CHuVZC
arqamWordsToNumbers.mjs106.8 KBsha384-nAQYcYQ2EGaXIUollp1v52mHiH0q/kBanTmO8Q/wbIxqM8azcrbhioomh+RMiNIf
arqamExplain.mjs120.0 KBsha384-6XyV//Ef3AKmPWpC1FJRhv65XnkBNWxRkO9ye+UYzzvwAiTFOly3BbT8ynAc3qjz
arqamUnits.mjs77.9 KBsha384-gx9iakzsnsPiN2mVYkO9DtdlkWaABhOY+ytt0b/fYapEUGof7AOQuoyhwH0siShN