namaz-time-table
v1.0.2
Published
This is a simple package used for fetching prayer times!
Downloads
5
Readme
What is this?
This is a simple package used for fetching prayer times!
How do i install and use this?
You can install it by doing: npm i prayer-times
,
and use it by doing:
const prayerTimes = require("namaz-time-table")
prayerTimes.getNextPrayer(country, city)
.then(prayer => console.log(prayer)) //returns: "Prayer Name: Prayer Time" (in digital)
prayerTimes.getPrayerTimesByCity(country, city) //put these parameters in a string!
.then(prayers => console.log(prayers))
/* returns (example):
{
Fajr: '04:59 (BST)',
Sunrise: '06:35 (BST)',
Dhuhr: '13:04 (BST)',
Asr: '16:37 (BST)',
Sunset: '19:34 (BST)',
Maghrib: '19:34 (BST)',
Isha: '21:11 (BST)',
Imsak: '04:49 (BST)',
Midnight: '01:05 (BST)'
}
*/
new Date().getDigitalTime() //returns the digital time! i added this in myself :p