1.0.1 • Published 11 months ago

myquran v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

api.myquran.com

This is an unofficial lightweight (~5kB) API wrapper of api.myquran.com, with TypeScript typings.

Examples

// JavaScript
const { findPrayCityByKeyword } = require("myquran");
const city = await findPrayCityByKeyword("depok");
console.log(city.data.lokasi); // "KOTA DEPOK"
// TypeScript
import { getTafsirByID } from "myquran";
const tafsir = await getTafsirByID("1337");
console.log(tafsir.data[0].text); // "Dan ada pula orang lain yang berada di sekeliling ..."

Features

  • TypeScript supports.
  • Async-await promise.
  • Simple error handling. Simply will return as null instead of { status: false, message: string }

Documentations

Everything is picked up based on api-myquran.com docs.

LICENSE

MIT

1.0.1

11 months ago

1.0.1-pre5

11 months ago

1.0.1-pre4

11 months ago

1.0.1-pre3

11 months ago

1.0.1-pre2

11 months ago

1.0.1-pre1

11 months ago

1.0.0

11 months ago