Bible as a npm package
npm i bible.ts
then,
import * as BibleTs from "bible.ts";
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
}
}
*/
-
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..
- Reduced the size by compressing the bible text.
- Added new verse format:
-
Romans 12:9f
- Get the verse and its following verse. (Same asRomans 12:9-10
) -
Romans 12:9ff
- Get the verse and its following verses. (Same asRomans 12:9-21
)
-
- Added another translation
KingJamesVersionBible()
- Added
getReading(verse: string)
to get reading from all translations at single call.
- 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
👍