You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

azaan

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azaan

Islamic prayer times CLI with automatic location detection

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source
azaan

azaan

Islamic prayer times CLI with automatic location detection

npm coverage

Automatic Everything

Just run azaan — it handles the rest:

  • Auto-detects your location via IP (3 fallback providers)
  • Auto-recommends calculation method based on your country
  • Auto-detects timezone for accurate prayer times
  • Auto-highlights current and next prayer with countdown

No configuration needed. Just run and pray.

Install

npx azaan

# Or install globally and update manually
npm install -g azaan
# Then run:
azaan
# To update later:
npm install -g azaan@latest

Usage

# Show today's prayer times (auto-setup on first run)
azaan

# Show next prayer with countdown
azaan next

# Show Qibla direction
azaan qibla

# Show monthly calendar
azaan month

# JSON output for scripting
azaan --json

# Single line for status bars (tmux, polybar, waybar)
azaan --status

# List calculation methods
azaan methods

# Configure settings
azaan config

Output

  AZAAN - Prayer Times CLI

  📍 San Francisco, USA
  🕐 America/Los_Angeles
  📅 01 Feb 2026
  🌙 13 Shaʿbān 1447 AH

  🌅  Fajr       5:59 AM
  ☀️  Sunrise    7:14 AM
  🌞  Dhuhr      12:23 PM
  🌤️  Asr        3:12 PM ← current
  🌇  Maghrib    5:34 PM ← next in 24m
  🌙  Isha       6:48 PM

Commands

CommandDescription
azaanToday's prayer times
azaan nextNext prayer with countdown
azaan qiblaQibla direction from your location
azaan monthMonthly prayer calendar
azaan methodsList calculation methods
azaan configConfigure settings
azaan --resetReset all settings

Options

-v, --version     Show version
-h, --help        Show help
-c, --city        Override city
-C, --country     Override country
--lat             Override latitude
--lon             Override longitude
-p, --plain       Plain text (no colors/emojis)
-j, --json        JSON output
-s, --status      Single line status
--reset           Reset settings

JSON Output

azaan --json
{
  "location": {
    "city": "San Francisco",
    "country": "USA",
    "timezone": "America/Los_Angeles"
  },
  "date": {
    "gregorian": "01 Feb 2026",
    "hijri": "13 Shaʿbān 1447"
  },
  "timings": {
    "fajr": "05:59",
    "sunrise": "07:14",
    "dhuhr": "12:23",
    "asr": "15:12",
    "maghrib": "17:34",
    "isha": "18:48"
  },
  "current": "asr",
  "next": {
    "prayer": "maghrib",
    "time": "17:34",
    "remaining": "24m"
  }
}

Status Bar

azaan --status
# Maghrib 5:34 PM (24m)

Use in tmux, polybar, waybar, or any status bar.

Qibla Direction

azaan qibla
  🕋  Qibla Direction

  ➡️  118.42° (ESE)

  From: 37.7749, -122.4194
  Direction is degrees clockwise from North

Configuration

# Interactive setup
azaan config

# Set location
azaan config --city "Makkah" --country "Saudi Arabia"

# Set calculation method
azaan config --method 4

# Set school (0=Shafi, 1=Hanafi)
azaan config --school 1

# Use 24-hour format
azaan config --24h

# Show current config
azaan config --show

# Clear config
azaan config --clear

Calculation Methods

IDMethodRegion
0JafariShia
1KarachiPakistan
2ISNANorth America
3MWLEurope
4MakkahSaudi Arabia
5EgyptEgypt
7TehranIran
15MoonsightingWorldwide
16DubaiUAE

Run azaan methods for full list of 23 methods.

Features

Zero-config:

  • Auto-detects location via IP (3 fallback providers)
  • Auto-recommends calculation method for your country
  • Auto-detects timezone

Smart display:

  • Highlights current prayer
  • Shows next prayer with countdown
  • Displays Hijri date

Flexible output:

  • JSON output for scripting (--json)
  • Status bar mode for tmux/polybar (--status)
  • Plain text mode (--plain)

Comprehensive:

  • 23 calculation methods worldwide
  • Qibla direction from your location
  • Monthly prayer calendar
  • Interactive setup wizard

Aliases

After installing globally, all these aliases work:

  • azaan
  • athan
  • azan

API

Powered by Aladhan Prayer Times API

Author

Ahmad Awais

License

MIT

Keywords

azaan

FAQs

Package last updated on 03 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts