All Projects → kafiln → salat-cli

kafiln / salat-cli

Licence: other
A Command line Utility to get the prayer's time in Morocco by city

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to salat-cli

Mosque-Screen
Chat: https://discord.gg/CG7frj2 - Email: [email protected]. We do not provide any support, this is a volunteer-based project therefore we cannot commit to any time to resolve local issues.
Stars: ✭ 54 (+58.82%)
Mutual labels:  islam, islamic-prayer-times
PrayerTimes-Swift
Islamic Prayer (salah) Time calculation written in swift.
Stars: ✭ 47 (+38.24%)
Mutual labels:  islam, islamic-prayer-times
pyIslam
pyIslam, a Python library to calculate prayer times, hijri date, qiblah direction and more
Stars: ✭ 68 (+100%)
Mutual labels:  islam, islamic-prayer-times
Jibli
🙏 It is a humanitarian initiative that aims to provide free delivery platform due to the coronavirus pandemic 😷😷😷
Stars: ✭ 21 (-38.24%)
Mutual labels:  morocco
stateofdev.ma
stateofdev.ma source code
Stars: ✭ 62 (+82.35%)
Mutual labels:  morocco
quran-align
Word-accurate timestamps for Qur'anic audio.
Stars: ✭ 139 (+308.82%)
Mutual labels:  islam
app waktu solat malaysia
Prayer times app for Malaysia. Accurate data from JAKIM. Available for Android and the web.
Stars: ✭ 24 (-29.41%)
Mutual labels:  islam
HIGH-TO-LOW
in this repository you will find codes in C and their equivalence in MIPS Assembly
Stars: ✭ 20 (-41.18%)
Mutual labels:  morocco
tajmeeaton
تجميعة من المشاريع، وخصوصا مفتوحة المصدر، للنهوض باللغة العربية والأمة. 👨‍💻 👨‍🔬👨‍🏫🧕
Stars: ✭ 115 (+238.24%)
Mutual labels:  islam
alquran-tools
Various tools for Parsing Quran Tajweed, Buck, etc.
Stars: ✭ 85 (+150%)
Mutual labels:  islam
MuezzinAPI
A web server application for Islamic prayer times
Stars: ✭ 33 (-2.94%)
Mutual labels:  islamic-prayer-times
IslamBot
A Discord bot that supports Qur'an, hadith, prayer times, tafsir and more.
Stars: ✭ 59 (+73.53%)
Mutual labels:  islam
prayer-times-extension
Under Development: Prayer Time Calculation based on Geolocation for Chromium and Firefox
Stars: ✭ 61 (+79.41%)
Mutual labels:  islam
QuranJSON
Simplified Perfect Complete Quran JSON (Indonesia Translation, Tafsir, and Audio) with API
Stars: ✭ 83 (+144.12%)
Mutual labels:  islam
Azkar-App
Desktop Application 💻 for Calculating Muslim prayer times 🕌 , Morning and Nights Azkar 🤲 with notification for random Azkar that pops-up in specific time.
Stars: ✭ 64 (+88.24%)
Mutual labels:  islam

Salat npm version

Description

Daily prayer time in all the cities in Morocco 🇲🇦, directly in your terminal, at the tip of your fingers

A stupid simple Command line utility to get the daily prayers time for all the citiy in Morocco

The source of the data is the Moroccan Ministery Website

Getting started

# Install

$ npm i -g salat

# Run with default city

$ salat

# Run with custom city

$ salat [cityName]

City name should be provided the same way it's written in the cities.json

Output

# The programs prints to the console the prayers' time for the current day in the default city as shown bellow:

screen 1 screen 2

Dependecies

The code behind depends on :

  • axios to make an http request ( fetch the data).
  • jsdom to parse the html result.
  • chalk to avoid boring styles and colors.
  • node-localstorage to read and write from localstorage.

Change the default city

  • The default city is ❤️ Marrakech ❤️, set as a value for the DEFAULT_CITY variable in ./constants.js

  • You can change it by replacing Marrakech by your city name according to the values from ./data/cities.json

Help

  • Please keep in mind that this is a work in progress in a very early stages, any help is appreciated and more than welcome.

  • If you think this piece of code is anyhow useful, please feel free to contribute, star and share 🙏 🙏

Todo

  • Use a default city
  • Use localstorage-like api for caching purposes
  • Display execution time
  • Improve performance
  • Add unit tests
  • Add a documentation site
  • Command to set the default city
  • Command to display the list of available cities
  • Command to display the time table for the whole month

License

This project is under the MIT license.

Built With ❤️ in Ramadan

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].