Catalog npm
PACKAGE EXPLORERView in registry

@0x1eef/quran

npm

A programmer's interface to The Noble Quran

islamjavascriptqurantypescript
Versions collected4
Direct dependencies9From release 0.2.1
Last observed20 Oct, 22:33 UTC

README

Current package documentation

الْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ

About

@0x1eef/quran provides a programmer's interface to The Noble Quran, alongside various translations. At the time of writing there is support for the Arabic, English, and Farsi languages.

Examples

Quran.locales

The Quran.locales getter provides an object where the key is a locale name (such as en) and the value is a locale object. The locales returned by this method indicate what languages the @0x1eef/quran library supports:

#!/usr/bin/env node
import { Quran } from "@0x1eef/quran";

(() => {
  const locales = Object.keys(Quran.locales);
  locales.forEach((key) => {
    const locale = Quran.locales[key];
    console.log("The Noble Quran for ", locale.displayName, " speakers");
  });
  /*
    The Noble Quran for English speakers
    The Noble Quran for العربية speakers
    The Noble Quran for فارسی speakers
  */
})();

Quran.surahs

The Quran.surahs getter provides an object where the key is a locale name (such as en) and the value is a surah object. For example:

#!/usr/bin/env node
import { Quran } from "@0x1eef/quran";

(() => {
  const surah = Quran.surahs["en"][0];
  const ayah = surah.ayat[0].body;
  console.log(ayah);
  /*
     In the Name of Allah —
     the Most Compassionate, Most Merciful.
   */
})();

Documentation

A complete API reference is available at 0x1eef.github.io/x/Quran.js

Install

@0x1eef/quran is available via npm:

npm i @0x1eef/quran

Credit

Translations

  • English (The Clear Quran) by Dr. Mustafa Khattab
  • Farsi by Hussain Ansarian

Sources

License

The "source code" is released under the terms of the GPL
See LICENSE for details

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 4

Collected releases
VersionPublishedDirect dependenciesOpen version
0.2.1Registry latest8 Feb 20259
0.2.08 Feb 20259
0.1.123 Oct 20249
0.1.023 Oct 20249

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
reflectslight/quran.js

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:33 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:1929fe9566205f93c699f8cbf1091846f6a2b211b38faa6c3d553aa269efc23c