getbible
v0.1.1
Published
Node.js wrapper for the getbible.net API
Downloads
2
Readme
getbible
Node.js wrapper for the getbible.net API
Install
$ npm install --save getbible
Usage
/* Include the library in your application */
var GetBible = require('getbible');
/* create an instance of the GetBible API */
var bibleAPI = new GetBible();
/* Retrieve an array of available books */
var books = bibleAPI.getBooks();
/* Retrieve all text for a single book */
var bookOfJohn = bibleAPI.getPassage('John');
/* Retrieve a specific chapter within a book */
var johnChapter3 = bibleAPI.getPassage('John3');
/* Retrieve more complex strings of chapters and verses */
var acts = bibleAPI.getPassage('Acts 3:17-4;2:1');
//returns Acts, Chapter 3, Verses 4-17, and Chapter 2, Verse 1.
License
MIT © Mark Rabey