ramadan-cal 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.
- package/README.md +5 -3
- package/package.json +1 -1
- package/src/display.js +12 -0
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# ๐ ramadan-cal
|
|
2
2
|
|
|
3
|
-
A beautiful terminal Ramadan calendar with prayer times, daily progress
|
|
3
|
+
A beautiful terminal Ramadan 2026 (1447 Hijri) calendar with prayer times, Eid countdown, and daily progress โ available as a CLI tool and inside Claude Code.
|
|
4
|
+
|
|
5
|
+
[**Website**](https://ramadan-cal-site.onrender.com) ยท [**npm**](https://www.npmjs.com/package/ramadan-cal)
|
|
4
6
|
|
|
5
7
|
## Install
|
|
6
8
|
|
|
@@ -11,7 +13,7 @@ npm install -g ramadan-cal
|
|
|
11
13
|
## Usage
|
|
12
14
|
|
|
13
15
|
```bash
|
|
14
|
-
ramadan # Full display: prayer times + calendar
|
|
16
|
+
ramadan # Full display: prayer times + calendar + progress
|
|
15
17
|
ramadan times # Prayer times only
|
|
16
18
|
ramadan calendar # Calendar only
|
|
17
19
|
ramadan check # Check prayer times for any city
|
|
@@ -27,7 +29,7 @@ Prayer times are calculated offline using the [adhan](https://github.com/batoula
|
|
|
27
29
|
|
|
28
30
|
## Claude Code
|
|
29
31
|
|
|
30
|
-
During installation
|
|
32
|
+
During installation, ramadan-cal automatically sets up a Claude Code skill. Just type `ramadan` inside any Claude Code session to see your Ramadan dashboard โ prayer times, calendar, and Eid countdown โ without leaving your coding flow. Zero tokens used.
|
|
31
33
|
|
|
32
34
|
If you skipped during install, run `npm rebuild ramadan-cal` to set it up later.
|
|
33
35
|
|
package/package.json
CHANGED
package/src/display.js
CHANGED
|
@@ -105,6 +105,18 @@ export function render(config, view = 'full') {
|
|
|
105
105
|
output.push(DIVIDER);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
// Last 10 nights โ odd night reminder
|
|
109
|
+
if (currentDay >= 20) {
|
|
110
|
+
const oddNights = [20, 22, 24, 26, 28];
|
|
111
|
+
if (oddNights.includes(currentDay)) {
|
|
112
|
+
output.push('');
|
|
113
|
+
output.push(chalk.bold.magenta('โจ Tonight is an odd night โ seek Laylatul Qadr'));
|
|
114
|
+
} else {
|
|
115
|
+
output.push('');
|
|
116
|
+
output.push(chalk.dim('๐ Tonight is not an odd night'));
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
108
120
|
// Eid prompt
|
|
109
121
|
if (!config.eidDate && currentDay >= 28) {
|
|
110
122
|
output.push('');
|