salat-first
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Prayer Times

A comprehensive Islamic prayer times calculation package with special support for Moroccan methods and Maliki madhab.

Features

  • Accurate prayer time calculations based on location and date
  • Specialized support for Moroccan Habous method (default)
  • Support for different madhabs with proper Asr calculation:
    • Maliki (default for Moroccan method)
    • Shafi
    • Hanafi
    • Hanbali
  • Multiple calculation methods including:
    • Muslim World League
    • Egyptian
    • Karachi (University of Islamic Sciences)
    • Umm al-Qura
    • Dubai
    • Moonsighting Committee
    • North America (ISNA)
    • Kuwait
    • Qatar
    • Singapore
    • Tehran
    • Turkey
  • Additional features:
    • Qibla direction calculation
    • Sunnah times (middle and last third of night)
    • Time formatting utilities
    • High latitude adjustment methods
    • Web widget for easy integration

Installation

npm install prayer-times

Using the Web Widget

Include the package in your HTML:

<script src="node_modules/prayer-times/dist/bundle.js"></script>

<div id="prayer-times"></div>

<script>
  const widget = new PrayerTimesWidget('prayer-times', {
    latitude: 33.5731,
    longitude: -7.5898,
    method: 'MoroccanHabous',
    language: 'ar', // 'en', 'ar', or 'fr'
    timeFormat: 'hour12' // 'hour12' or 'hour24'
  });
</script>

Package Sidebar

Install

npm i salat-first

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

95 kB

Total Files

48

Last publish

Collaborators

  • elkhiari