getbible

0.1.1 • Public • Published

getbible NPM version Build Status Dependency Status

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

Readme

Keywords

Package Sidebar

Install

npm i getbible

Homepage

getbible.net

Weekly Downloads

3

Version

0.1.1

License

MIT

Last publish

Collaborators

  • markrabey