getbible

Node.js wrapper for the getbible.net API

Usage no npm install needed!

<script type="module">
  import getbible from 'https://cdn.skypack.dev/getbible';
</script>

README

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