v1.0.0
12 Sep 2026First release.
Added
prayerTimes()using Meeus's solar astronomy, checked against adhan across 1 210 combinations of place, method, date and madhab: 6 801 of 7 260 times match exactly and the rest differ by one minute.- Fourteen methods — Muslim World League, Egyptian, Karachi, Umm al-Qura, UAE, Qatar, Kuwait, ISNA, Singapore, Diyanet, Tehran, Jafari, France and Russia — each carrying the minute adjustments its authority publishes.
{ country: 'AE' }picks the method that country's timetables use, so nobody has to know that the UAE means 18.2° and three minutes onto Dhuhr.- Both madhabs for Asr, three high-latitude rules, and a polar resolution that borrows the nearest real day so the order of the prayers never inverts. Anything estimated says so.
- Umm al-Qura's ninety-minute Isha, and the two hours it becomes in Ramadan.
nextPrayer()with a countdown,currentPrayer(),monthTimes()for a printable timetable, andnightPortions()for Qiyam.qibla()as a great circle, withcompassPoint()anddistanceToKaaba().formatTimes()in a place's own time zone, in any locale.- 3.5 kB gzip, zero dependencies.