1.0.4 • Published 8 months ago

@daxplrer/alkitabapi v1.0.4

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

@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 was 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

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago