Welcome to Quran Meta Project
This project is to help with Quran related meta queries.
Answering Questions like:
- How many ayahs in given sura (
getAyaCountinSura
) - Is given aya
- a sajdah ayah?
- beginnning of a juz (
isAyahJuzFirst
)? - beginnning of a page?
findJuz
and findJuzByAyaid
findPage
by surah/aya- Find next or previous ayah (
nextAyah
/prevAyah
) - converts
[surah,aya]
to ayaId
and vice-verse ( findSurahByAyaid
and findAyaidBySurah
)
Installation
In a browser:
<script src="quran-meta.js"></script>
Also modern browsers allow
<script type="module">
import quranMeta from "quran-meta.esm.js"
</script>
The library is available from various CDNs
Using npm:
$ npm i --save quran-meta
In Node.js:
var quranMeta = require('quran-meta');
APi Reference Documentation
See here for API documentation
Examples
You can find some examples here and souce code for them here
Demo
- Quran Meta Visualiser - demo app showcasing number of methods from Quran-meta to build interactive visualisations of Quran structure
Distributions and Downloads
Here you can find the following