Socket
Socket
Sign inDemoInstall

quran-meta

Package Overview
Dependencies
0
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    quran-meta

Library with meta data and functionality related to Holy Quran


Version published
Maintainers
1
Install size
566 kB
Created

Readme

Source

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

  • JSDelivr
  • UnPKG

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 typescriptTS
Javascript code autotranspiled from TS as ES NextESNext
Javascript code autotranspiled from TS as CJSES5+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 webpackES5+CommonJS
ESM for use with modern bundlers like webpack 2 or RollupES5+ESM
ESM Browser/ESM Browser minified for direct imports in modern browsers via <script type="module">ESNext+ESM

Keywords

FAQs

Last updated on 13 Nov 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc