Socket
Socket
Sign inDemoInstall

azhan-jo

Package Overview
Dependencies
89
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    azhan-jo

Get azhan times in Amman


Version published
Weekly downloads
6
decreased by-57.14%
Maintainers
1
Install size
9.40 MB
Created
Weekly downloads
 

Readme

Source

Azhan Jo

Get azhan times in Amman

Install Globally

To be able to get azhan's times in your cli you have to install the package globally

npm install azhan-jo -g

To fetch and print prayer times you can use one of the commands

azhan or adan or adhan

Usage

Install the package to your project

npm install azhan-jo

Sample Code

var azhan = require('azhan-jo');

azhan.getPrayerTimes().then(function(results) {
  console.log(results);
}).catch(function(error) {
  console.log(error);  
});

Methods

getTitles()

Return an array of prayer titles ['fajr', 'sunrise', 'dhuhr', 'asr', 'maghrib', 'isha']

console.log(azhan.getTitles());

getPrayerTimes()

Fetch, parse, and return an object of prayer times through Promise object.

azhan.getPrayerTimes().then(function(results) {
  console.log(results);
}).catch(function(error) {
  console.log(error);  
});

getPrayerTime(title)

Fetch, parse, and return an the time for a specefic prayer by its title through Promise object.

azhan.getPrayerTime('fajr').then(function(result) {
  console.log(result);
}).catch(function(error) {
  console.log(error);  
});

License

This project is under the MIT license, so feel free to use it.

Keywords

FAQs

Last updated on 01 Mar 2016

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc