quran-meta
TypeScript icon, indicating that this package has built-in type declarations

2.4.15 • Public • Published

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

demo image

Distributions and Downloads

Here you can find the following

Source code in typescript TS
Javascript code autotranspiled from TS as ES Next ESNext
Javascript code autotranspiled from TS as CJS ES5+CommonJS
distributions of library as
UMD/ UMD minified builds can be used directly in the browser via a <script> (see here about UMD format) ES5+UMD
CommonJS for use with older bundlers like browserify or webpack ES5+CommonJS
ESM for use with modern bundlers like webpack 2 or Rollup ES5+ESM
ESM Browser/ESM Browser minified for direct imports in modern browsers via <script type="module"> ESNext+ESM

Package Sidebar

Install

npm i quran-meta

Weekly Downloads

186

Version

2.4.15

License

MIT

Unpacked Size

580 kB

Total Files

78

Last publish

Collaborators

  • husayt