A library for fetching quran data from the Quran.com API. This library also works on both Node.js and the browser.
Installation
using npm:
npm install @quranjs/api
using yarn:
yarn add @quranjs/api
Getting Started
You can use the library in your project by importing it:
import { quran } from '@quranjs/api'quran.v4.chapters.findAll().then(console.log) // will log all chapters
or with CJS:
const { quran } = require('@quranjs/api')quran.v4.chapters.findAll().then(console.log) // will log all chapters