UNPKG

fasting-tracker

Version:

Türkiye'deki şehirler için iftar ve sahur saatlerini getiren, hatırlatma ve Discord Webhook desteği sunan Node.js paketi.

23 lines (18 loc) 575 B
#!/usr/bin/env node const { getFastTrack } = require("./index"); const args = process.argv.slice(2); if (args.length === 0) { console.log("❌ Please enter a city name.\nUsage: fasting-tracker <city>"); process.exit(1); } const city = args.join(" "); (async () => { try { const result = await getFastTrack(city); console.log(`🌙 FastingTracker for ${city}`); console.log(`🕓 Sahur: ${result.imsak}`); console.log(`🌅 Iftar: ${result.iftar}`); } catch (error) { console.error("❌ Error:", error.message); } })();