Skip to content

basit3407/api-js

 
 

Repository files navigation

Quranjs Api Header

Quran Foundation Content API - JavaScript SDK

This package provides a JavaScript SDK for the Quran Foundation Content API and works in both Node.js and the browser.

Full documentation is available at https://api-docs.quran.foundation/sdk.

Build Status MIT License NPM Version Minziped Size NPM Monthly downloads

Installation

npm install @quranjs/api

or using pnpm / yarn:

pnpm add @quranjs/api
# or
yarn add @quranjs/api

Quick Start

import { configure, quran } from '@quranjs/api';

configure({
  clientId: '<YOUR_QF_CLIENT_ID>',
  clientSecret: '<YOUR_QF_CLIENT_SECRET>',
});

const chapters = await quran.qf.chapters.findAll();
console.log(chapters);

For more examples and a complete API reference, see the SDK documentation.

Migrating from previous versions

If you used an earlier version of this SDK, please check the migration guide on the documentation site for details on upgrading.

About

Quran.com's API Javascript SDK https://npmjs.com/package/@quranjs/api

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.1%
  • JavaScript 3.9%