@getexeer/saudi-eosb 1.0.0 → 1.0.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 (2) hide show
  1. package/README.md +4 -42
  2. package/package.json +2 -9
package/README.md CHANGED
@@ -108,49 +108,11 @@ This is an arithmetic library. It encodes a reading of Articles 84 and 85 and no
108
108
 
109
109
  ## About
110
110
 
111
- This is the calculation behind the free end-of-service calculator published by **Exeer (إكسير)**, a Saudi administrative and HR system, at [getexeer.com/tools/eosb.html](https://getexeer.com/tools/eosb.html). It is packaged here so that anyone building payroll or HR software for Saudi businesses can reuse the same rules instead of re-deriving them.
111
+ This is the calculation behind the free end-of-service calculator published by **Exeer (إكسير)**, a Saudi administrative and HR system. It is packaged here so that anyone building payroll or HR software for Saudi businesses can reuse the same rules instead of re-deriving them.
112
112
 
113
- - Exeer: [getexeer.com](https://getexeer.com)
114
- - Machine-readable summary for AI assistants: [getexeer.com/llms.txt](https://getexeer.com/llms.txt)
115
-
116
- ---
117
-
118
- ## بالعربية
119
-
120
- مكتبة **مكافأة نهاية الخدمة** في السعودية، وفق **المادتين ٨٤ و٨٥ من نظام العمل**.
121
- بلا اعتماديات، وتعمل في Node والمتصفّح.
122
-
123
- **المادة ٨٤ — أصل المكافأة:** نصف شهر عن كل سنة من السنوات الخمس الأولى، وشهر
124
- كامل عن كل سنة بعدها، محسوبة على **الأجر الأخير**.
125
-
126
- **المادة ٨٥ — ما يستحقه المستقيل فعلاً:**
127
-
128
- | مدة الخدمة | الاستحقاق |
129
- | --- | --- |
130
- | أقل من سنتين | لا شيء |
131
- | من سنتين إلى أقل من ٥ | ثلث المكافأة |
132
- | من ٥ إلى أقل من ١٠ | ثلثا المكافأة |
133
- | ١٠ سنوات فأكثر | المكافأة كاملة |
134
-
135
- والإنهاء من صاحب العمل يستحق المكافأة كاملة.
136
-
137
- ```js
138
- import { calculateEosb, REASON } from "@getexeer/saudi-eosb";
139
-
140
- // استقالة بعد ٧ سنوات بأجر ٥٠٠٠
141
- calculateEosb({ wage: 5000, years: 7, reason: REASON.RESIGNATION }).amount;
142
- // 15000
143
-
144
- // أو من تاريخين
145
- calculateEosb({ wage: 7500, startDate: "2018-03-01", endDate: "2026-09-01" });
146
- ```
147
-
148
- **وما لا تقرّره المكتبة:** الفصل لسبب مشروع (المادة ٨٠)، وترك العمل لسبب نظامي
149
- (المادة ٨١)، وحالات الاستحقاق الكامل الاستثنائية (المادة ٨٧). هذه وقائع
150
- وإجراءات تُراجَع بشرياً، لا حساب.
151
-
152
- المكتبة هي نفس حساب حاسبة نهاية الخدمة المجانية في
153
- [إكسير](https://getexeer.com/tools/eosb.html).
113
+ - **Try the calculator:** [getexeer.com/tools/eosb.html](https://getexeer.com/tools/eosb.html)
114
+ - **Exeer, the system it belongs to:** [getexeer.com](https://getexeer.com)
115
+ - **Machine-readable summary for AI assistants:** [getexeer.com/llms.txt](https://getexeer.com/llms.txt)
154
116
 
155
117
  ## License
156
118
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getexeer/saudi-eosb",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Saudi end-of-service benefits under Articles 84 and 85 of the Saudi Labour Law: base award, resignation fractions and length of service. Zero dependencies, works in Node and the browser.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -44,14 +44,7 @@
44
44
  "email": "hello@getexeer.com"
45
45
  },
46
46
  "license": "MIT",
47
- "repository": {
48
- "url": "git+https://github.com/Exeerkit/saudi-eosb.git",
49
- "type": "git"
50
- },
51
- "homepage": "https://getexeer.com/tools/eosb.html",
52
- "bugs": {
53
- "url": "https://github.com/Exeerkit/saudi-eosb/issues"
54
- },
47
+ "homepage": "https://getexeer.com/",
55
48
  "engines": {
56
49
  "node": ">=18"
57
50
  },