1.0.0 • Published 2 years ago

@kmaslesa/quran-translation-en_ahmedali v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Quran Translations

بسم الله الرحمن الرحيم

Installation

npm install @kmaslesa/quran-translation-en_ahmedali

Usage

const quranTranslation = require('@kmaslesa/quran-translation-en_ahmedali');
quranTranslations.getHolyQuranTranslation();

RESPONSE:
[
  {
    index: "1",
    sura: "1",
    aya: "1",
    text: "'In the name of Allah, most benevolent, ever-merciful.'",
  },
  {
    index: "2",
    sura: "1",
    aya: "2",
    text: "'ALL PRAISE BE to Allah, Lord of all the worlds,'",
  },
  {
    index: "3",
    sura: "1",
    aya: "3",
    text: "'Most beneficent, ever-merciful,'",
  },
  { index: "4", sura: "1", aya: "4", text: "'King of the Day of Judgement.'" },
  {
    index: "5",
    sura: "1",
    aya: "5",
    text: "'You alone we worship, and to You alone turn for help.'",
  },
  {
    index: "6",
    sura: "1",
    aya: "6",
    text: "'Guide us (O Lord) to the path that is straight,'",
  },
  {
    index: "7",
    sura: "1",
    aya: "7",
    text: "'The path of those You have blessed, Not of those who have earned Your anger, nor those who have gone astray.'",
  },
  { index: "8", sura: "2", aya: "1", text: "'ALIF LAM MIM.'" },
  {
    index: "9",
    sura: "2",
    aya: "2",
    text: "'This is The Book free of doubt and involution, a guidance for those who preserve themselves from evil and follow the straight path,'",
  },
  {
    index: "10",
    sura: "2",
    aya: "3",
    text: "'Who believe in the Unknown and fulfil their devotional obligations, and spend in charity of what We have given them;'",
  },
  {
    index: "11",
    sura: "2",
    aya: "4",
    text: "'Who believe in what has been revealed to you and what was revealed to those before you, and are certain of the Hereafter.'",
  },
  {
    index: "12",
    sura: "2",
    aya: "5",
    text: "'They have found the guidance of their Lord and will be successful.'",
  },
  ..........
]
quranTranslations.getIndexTranslation(index); // index=(1-6236)

EXAMPLE:
quranTranslations.getIndexTranslation(1);

RESPONSE:
[{"index":"1","sura":"1","aya":"1","text":"'In the name of Allah, most benevolent, ever-merciful.'"}]
quranTranslations.getSuraTranslation(sura); // sura=(1-114)

EXAMPLE:
quranTranslations.getSuraTranslation(114);

RESPONSE:
[{"index":"6231","sura":"114","aya":"1","text":"'SAY: \\\"I SEEK refuge with the Lord of men,'"},{"index":"6232","sura":"114","aya":"2","text":"'The King of men,'"},{"index":"6233","sura":"114","aya":"3","text":"'The God of men,'"},{"index":"6234","sura":"114","aya":"4","text":"'From the evil of him who breathes temptations into the minds of men,'"},{"index":"6235","sura":"114","aya":"5","text":"'Who suggests evil thoughts to the hearts of men --'"},{"index":"6236","sura":"114","aya":"6","text":"'From among the jinns and men.'"}]
quranTranslations.getAyaTranslation(aya, sura);

EXAMPLE:
quranTranslations.getAyaTranslation(1, 114);

RESPONSE:
[{"index":"6231","sura":"114","aya":"1","text":"'SAY: \\\"I SEEK refuge with the Lord of men,'"}]

License

MIT