Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

cupglassDEV/alkitab-api

 
 

Repository files navigation

Hey, pls read me!

Untill now, i have NO plan to rework on this project due to the weird structure of this package, and the Sabda api itself

(for example, they might return plain text that looks like this

[Verse] [Quote] And they didnt use the JSON format to make it more cleaner)

Also im no longer making projects that based on Javascript, from now on. Working on something bigger on another repository

So feel free to fork it

@sonnylazuardi's alkitab-api, as a module

Setup

Install the package by executing:

npm install @daxplrer/alkitabapi

Then try to run getChapters

import alkitabapi from '@daxplrer/alkitabapi'
await alkitabapi.getChapter(alkitabapi.Version.tb, alkitabapi.Book.proverbs, 12, 21);

The results would be like this:

    {
      verses: [
        {
          content: 'Orang benar tidak akan ditimpa oleh bencana apapun, tetapi orang fasik akan senantiasa celaka.', 
          version: 'tb',
          verse: 21
        }
      ],
      chapter: 12,
      book: 'Ams',
      version: 'tb',
      toJoinedVerses: [Function: toJoinedVerses]
    }

Updates

  • the types and alkitabapi namespace was merged into one namespace (alkitabapi)
  • default exports are supported now
  • some useless code (in the internal) was removed

Known bugs

--

Documentation

coming soon, for now i made the JSDOC too for the replacement of it

About

📖 bibble API, as a module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%