Skip to content
Utilities for handling Bible references
CoffeeScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
README.md
main.coffee
package.json

README.md

Bible Reference Utilities

Utilities for handling Bible references, such as normalizing book names. This project started as a component of the BibViz Project, an interactive visualization of Bible contradictions, violence, and misogyny in the Bible. It was spun off as it might be useful to others.

Usage

Install the library via NPM:

npm install bible-ref

Then, once installed you can require and use it:

var bref = require('bible-ref');

console.log(bref.bookNames);

console.log(bref.bookNormalize('1CO 1:1-4'));

Reference

bookNames

A list of book names in the Bible, e.g. ['Genesis', 'Exodus', ...].

bookNormalize(ref)

Normalize the book name in a Bible reference.

bref.bookNormalize('1CO')
>>> '1 Corinthians'

bref.bookNormalize('1CO 2:1')
>>> '1 Corinthians 2:1'

bref.bookNormalize('1 Corinthians 2:1')
>>> '1 Corinthians 2:1'

License

This work is copyright 2013 Daniel G. Taylor and licensed under an MIT-style license.

Something went wrong with that request. Please try again.