The Bible as a NPM module.
$ npm i bible.js
Creates a new BibleJS
instance.
- Object
options
: An object containing the following fields: language
: the langauge of the BibleJS instance (default:"en"
).
- BibleJS The
BibleJS
instance.
This function gets the response providing the BibleJS reference
.
- String
reference
: The verse reference. It can be in the following formats:
e.g. Genesis 1:1 - returns one verse
or Genesis 1:1,2 - returns two verses (1 and 2)
or Genesis 1:1-10 - returns the verses 1 - 10
or Genesis 1 - returns the whole chapter
- Function
callback
: The callback function.
- BibleJS The BibleJS instance (self).
This function gets the verses that match to the regular expression provided.
- String|RegExp
query
: The string/regular expression that matches the searched verses. - Function
callback
: The callback function
- BibleJS The BibleJS instance (self)
Have an idea? Found a bug? See how to contribute.
KINDLY © Ionică Bizău–The LICENSE file contains a copy of the license.