bible.ts
v0.0.3
Published
Bible in a npm package written in typescript
Downloads
10
Maintainers
Readme
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 asRomans 12:9-10
)Romans 12:9ff
- Get the verse and its following verses. (Same asRomans 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
👍