1.2.0 • Published 7 years ago
holy-bible v1.2.0
Holy Bible
Easy-to-use JS library for retrieving bible scripture.
Installation
$ npm install holy-bible --save
Usage
var bible = require('holy-bible');
bible.get('John 15:13', 'ASV') // also supports 2-letter abbrev (ie: Jn 15:13)
.then(function (res) {
console.log(res.text);
});
// Greater love hath no man than this, that a man lay down his life for his friends.
Documentation
###.get(verse , version) => Promise
######verse - A bible passage
Type: String
######version - Bible version
Type: String
Default: 'ASV'
######Resolves into an object
{
version: 'ASV',
passage: 'John.15.13',
text: 'Greater love...'
}
Currently Supported Versions
- ASV
- KJV
Tests
$ npm install
$ npm test