0.0.3 โ€ข Published 6 days ago

bible.ts v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
6 days ago

bible.ts

Bible as a npm package

โฌ‡๏ธ Installation

npm i bible.ts

then,

import * as BibleTs from "bible.ts";

๐Ÿ“‹ Usage

import { BasicEnglishBible } from "bible.ts"; // or
// const { BasicEnglishBible } = BibleTs;

let bible = new BasicEnglishBible();
let reading = 'John 14:6';
console.log(
  bible.getReading(reading)
); // => 
/* 
  {
    text: 'โ‚†Jesus said to him, I am the true and living way: no one comes to the Father but by me.',
    verse: 'Jn 14:6',
    data: {
      book: 'John',
      chapter: 14,
      verse: 6
    }
  }
*/

๐Ÿ”  Translations Available.

  • Bible in Basic English (BBE)
    • Purely Downloaded from here.
import { BasicEnglishBible, Bible, Translation } from 'bible.ts';
new BasicEnglishBible(); // or
new Bible(Translation.BasicEnglish);
  • King James Version Bible (KJV)
    • Download from here and modified accordingly to be parsed by the package.
import { KingJamesVersionBible, Bible, Translation } from 'bible.ts';
new KingJamesVersionBible(); // or
new Bible(Translation.KingJamesVersion);

More will be adding soon..

โฐ Changelog

@0.0.3

  • Reduced the size by compressing the bible text.
  • Added new verse format:
    • Romans 12:9f - Get the verse and its following verse. (Same as Romans 12:9-10)
    • Romans 12:9ff - Get the verse and its following verses. (Same as Romans 12:9-21)

@0.0.2

  • Added another translation KingJamesVersionBible()
  • Added getReading(verse: string) to get reading from all translations at single call.

@0.0.1

  • First translation in package BasicEnglishBible()
  • Main class Bible has been added.

If any changes to be made or issues please contact me through my discord leziuwu๐Ÿ‘

Peace be with you โœ๏ธ

0.0.3

6 days ago

0.0.2

1 month ago

0.0.1

1 month ago