arqam 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +336 -298
- package/dist/SRI.txt +4 -4
- package/dist/arqamAR.d.mts +16 -8
- package/dist/arqamAR.mjs +2 -2
- package/dist/arqamEN.d.mts +8 -4
- package/dist/arqamExplain.d.mts +7 -4
- package/dist/arqamExplain.mjs +2 -2
- package/dist/arqamUnits.d.mts +8 -4
- package/dist/arqamUnits.mjs +1 -1
- package/dist/arqamWordsToNumbers.d.mts +12 -2
- package/dist/arqamWordsToNumbers.mjs +2 -2
- package/package.json +9 -5
package/dist/arqamEN.d.mts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* @file : arqamEN.d.mts
|
|
3
|
+
* @purpose : TypeScript declarations of the English engine arqamEN: English numbers and amounts in words.
|
|
4
|
+
* import arqamEN from "arqam/en";
|
|
5
|
+
* arqamEN.toWords("1250.50", "QAR") // One Thousand Two Hundred Fifty Qatari Riyals and Fifty Dirhams
|
|
6
|
+
* @author : Mohsen Alyafei
|
|
7
|
+
* @Licence : MIT
|
|
8
|
+
**********************************************************************/
|
|
5
9
|
export type ArqamENNumber = string | number | bigint;
|
|
6
10
|
export type ArqamENSwitch = "on" | "off" | "";
|
|
7
11
|
export interface ArqamENOptions {
|
package/dist/arqamExplain.d.mts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* @file : arqamExplain.d.mts
|
|
3
|
+
* @purpose : TypeScript declarations for arqamExplain.mjs. The module imports the engine (arqamAR.mjs)
|
|
4
|
+
* and attaches arqamAR.explain.
|
|
5
|
+
* @author : Mohsen Alyafei
|
|
6
|
+
* @Licence : MIT
|
|
7
|
+
**********************************************************************/
|
|
5
8
|
import type { ArqamNumber, ArqamOptions, ArqamDate, ArqamDateOptions, ArqamTime, ArqamTimeOptions, ArqamFraction, ArqamFractionOptions, ArqamNumberFormatOptions } from "./arqamAR.mjs";
|
|
6
9
|
|
|
7
10
|
/** What a word is in the text. "word" is any other word (فقط، سالب، بالمائة، لا غير …). */
|