Catalog npm
Back to packageRELEASE DETAILS

0.1.0

npm

@0x1eef/quran

A programmer's interface to The Noble Quran

islamjavascriptqurantypescript
Published23 Oct 2024
Direct dependencies9
Transitive dependenciesNot calculated

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.

Declared dependencies 9

Native requirements
9 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
prettier
Environment
{
  "local_name": "prettier",
  "alias": false,
  "peer_metadata": null
}
^3.3.3development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.5development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^22.0development
webpack-cli
Environment
{
  "local_name": "webpack-cli",
  "alias": false,
  "peer_metadata": null
}
^5.1.4development
babel-loader
Environment
{
  "local_name": "babel-loader",
  "alias": false,
  "peer_metadata": null
}
^9.2.1development
@babel/preset-env
Environment
{
  "local_name": "@babel/preset-env",
  "alias": false,
  "peer_metadata": null
}
^7.25.8development
eslint-config-prettier
Environment
{
  "local_name": "eslint-config-prettier",
  "alias": false,
  "peer_metadata": null
}
^9.1.0development
eslint-plugin-prettier
Environment
{
  "local_name": "eslint-plugin-prettier",
  "alias": false,
  "peer_metadata": null
}
^5.2.1development
@babel/preset-typescript
Environment
{
  "local_name": "@babel/preset-typescript",
  "alias": false,
  "peer_metadata": null
}
^7.25.7development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "3a66619d4e797e350752ea8d61cb93bdcc0c04d0",
  "tarball": "https://registry.npmjs.org/@0x1eef/quran/-/quran-0.1.0.tgz",
  "fileCount": 8,
  "integrity": "sha512-yeR/5/UrVcGMhH3Ev/aXJzYRFyyJnjK9n6I+vmZOjDSQL1xi58MMIrjDU+IXktoRZ8p+QelB+lHsQGQ10tP1BQ==",
  "signatures": [
    {
      "sig": "MEUCIGcMkt+AJ5fZjzE+6pOgwltwIkA6w46q6YfPdbZzDK4cAiEAkp6rES6+DLivNL1AJu/6l2vMv/P3aHW2uNUOsb1OO7U=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 4173968
}

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_version:cd278a6aa3fdd6ae8cb2f3f428fa7adc13d15190fd6b1ec143ce6376f32b3c81

Other collected versions

0.2.18 Feb0.2.08 Feb0.1.123 OctView all collected versions →