holy-bible

A small library providing access to the Bible

Usage no npm install needed!

<script type="module">
  import holyBible from 'https://cdn.skypack.dev/holy-bible';
</script>

README

Holy Bible Build Status npm version

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

License

MIT