1.2.3 • Published 1 year ago

quran-db v1.2.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

npm package pub package

Quran text, translation, audio URLs, and details of pages, juz, surah, ayah, place of revelation etc.

Constants:

  • basmala - The constant 'بِسْمِ ٱللَّهِ ٱلرَّحْمَٰنِ ٱلرَّحِيمِ'
  • sajdah - The constant 'سَجْدَةٌ'
  • totalJuzCount - The constant total juz count
  • totalMadaniSurahs - The constant total of madani surahs
  • totalMakkiSurahs - The constant total of makki surahs
  • totalPagesCount - The most standard and common copy of Arabic only Quran total pages count
  • totalSurahCount - The constant total surah count
  • totalVerseCount - The constant total verse count

Functions:

Juz:

  • getJuzNumber(surahNumber, verseNumber) - Takes surahNumber & verseNumber and returns Juz number
  • getSurahAndVersesFromJuz(juzNumber) - Takes juzNumber and returns a map containing Surah and Verse numbers

Surah:

  • getSurahName(surahNumber) - Takes surahNumber and returns the Surah name
  • getSurahNameArabic(surahNumber) - Takes surahNumber returns the Surah name in Arabic
  • getSurahNameEnglish(surahNumber) - Takes surahNumber returns the Surah name in English
  • getSurahNameTurkish(surahNumber) - Takes surahNumber returns the Surah name in Turkish
  • getPlaceOfRevelation(surahNumber) - Takes surahNumber and returns the Place of Revelation (Makkah / Madinah) of that Surah
  • getVerseCount(surahNumber) - Takes surahNumber and returns the count of total Verses in that Surah

Verse:

Page:

  • getPageData(pageNumber) - Takes pageNumber and returns a list containing Surahs and the starting and ending Verse numbers in that page
  • getPageNumber(surahNumber, verseNumber) - Takes surahNumber, verseNumber and returns the page number of the Quran
  • getSurahCountByPage(pageNumber) - Takes pageNumber and returns total surahs count in that page
  • getSurahPages(surahNumber) - Takes surahNumber and returns the list of page numbers of that surah
  • getVerseCountByPage(pageNumber) - Takes pageNumber and returns total verses count in that page
  • getVersesTextByPage(pageNumber, {verseEndSymbol, surahSeperator, customSurahSeperator}) - Takes pageNumber, verseEndSymbol, surahSeperator & customSurahSeperator and returns the list of verses in that page

URLs:

  • getAudioURLBySurah(surahNumber) - Takes surahNumber and returns audio URL of that surah
  • getAudioURLByVerse(surahNumber, verseNumber) - Takes surahNumber & verseNumber and returns audio URL of that verse
  • getAudioURLByVerseNumber(surahNumber) - Takes verseNumber and returns audio URL of that verse
  • getJuzURL(juzNumber) - Takes juzNumber and returns Juz URL (from Quran.com)
  • getSurahURL(surahNumber) - Takes surahNumber and returns Surah URL (from Quran.com)
  • getVerseURL(surahNumber, verseNumber) - Takes surahNumber & verseNumber and returns Verse URL (from Quran.com)

Search:

  • searchWords(words) - Takes an array of words words and returns a map containing no. of occurences and result of the word search in the arabic quran text
  • searchWordsInTranslation(words, {translation}) - Takes an array of words words and translation and returns a map containing no. of occurences and result of the word search in the traslation

Translations:

  • English (Saheeh International) - Translation.enSaheeh
  • Turkish - Translation.trSaheeh
  • Malayalam (Cheriyamundam Abdul Hameed and Kunhi Mohammed Parappoor) - Translation.mlAbdulHameed

SurahSeperators:

  • SurahSeperator.none
  • SurahSeperator.surahName
  • SurahSeperator.surahNameArabic
  • SurahSeperator.surahNameEnglish
  • SurahSeperator.surahNameTurkish
1.2.3

1 year ago

1.0.7

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago