fatoora-check 0.0.0-stage → 0.1.1

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.
Files changed (3) hide show
  1. package/README.md +23 -2
  2. package/dist/fatoora.js +1731 -0
  3. package/package.json +33 -4
package/README.md CHANGED
@@ -1,3 +1,24 @@
1
- # Temporary Holding Version
1
+ # fatoora-check
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ فاحص فواتير ZATCA من سطر الأوامر. يقول لك أي قاعدة كسرتها فاتورتك، وليه، وإزاي تصلحها، بالعربي والإنجليزي. يعمل محلياً، لا يرفع أي ملف.
4
+
5
+ Free ZATCA (Saudi e-invoicing) validator for the command line. Every failed rule with its meaning and fix, in Arabic and English. Runs locally; nothing is uploaded.
6
+
7
+ ```
8
+ npx fatoora-check invoice.xml
9
+ npx fatoora-check invoice.xml --json
10
+ npx fatoora-check qr invoice.xml
11
+ npx fatoora-check chain ./invoices
12
+ npx fatoora-check explain BR-KSA-40
13
+ npx fatoora-check rules
14
+ ```
15
+
16
+ Options: `--lang en|ar|both` (default `en`), `--today YYYY-MM-DD` (for tests), `--json`. Exit code is 1 when any error-severity rule fails, so it drops into CI as-is.
17
+
18
+ Rules are re-extracted from the conditions ZATCA SDK 3.4.8 actually executes (the `xsl:if` guard), not only from the published text; where the two disagree the CLI says so. 24 rules have full Arabic and English explanations today.
19
+
20
+ Not affiliated with ZATCA and not a certified solution. Validation only: no signing, no CSID onboarding, no submission.
21
+
22
+ - Site: https://mostafa-refaat-design.github.io/fatoora-doctor/
23
+ - Rule pages: https://mostafa-refaat-design.github.io/fatoora-doctor/akhta/
24
+ - Source: https://github.com/mostafa-refaat-design/fatoora-doctor