You can see below the API reference of this module.
Retrieves verses from bible.com, provided by YouVersion. Initializes the BibleScraper instance.
- Number
translationId: - The translation id from bible.com.
Constructor for the class.
- type
translationId: - the ID of the Bible translation.
Returns the Bible url reference from bible.com.
- String
reference: The Bible reference to get the url for.
- String The reference url.
getBibleReference(params, params.book, params.chapter, [params.verseNumStart], [params.verseNumEnd])
Generates a bible reference based on the provided book, chapter, and verse range.
- Object
params: - The parameters object. - string
params.book: - The name of the book. - number
params.chapter: - The chapter number. - number
[params.verseNumStart]: - The starting verse number (optional). - number
[params.verseNumEnd]: - The ending verse number (optional).
- string The generated bible reference.
verse Fetches the verse.
- String
ref: The Bible.com verse reference.
- Promise A promise resolving the verse object.
chapter Fetches the chapter verses.
- String
ref: The Bible.com chapter reference.
- Promise A promise resolving the chapter object.
The available books from bible.com.
The translation ID's from bible.com.