← Projects
pray-calc
High-precision Islamic prayer time calculations for every major method.
TypeScriptnpm
About
pray-calc computes Islamic prayer times for every major calculation method, with Qibla direction and high-latitude handling. Pure TypeScript, dual CJS + ESM.
Install
npm install pray-calcQuick start
import { calcTimes } from 'pray-calc';
const times = calcTimes(
new Date('2024-06-21'),
40.7128, // latitude (New York)
-74.0060, // longitude
-4, // UTC offset (hours)
);
console.log(times.Fajr, times.Dhuhr, times.Maghrib);