Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

quran-meta

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quran-meta

Library with meta data and functionality related to Holy Quran

  • 2.4.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
57
decreased by-89.02%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 09 Feb 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc