1.0.17 • Published 2 months ago

bible-linker v1.0.17

Weekly downloads
6
License
ISC
Repository
github
Last release
2 months ago

bible-linker

Recognize bible verse references in the text and process them.

Usage

const { bibleLink, youVersion } = require('bible-linker')

// Use your own linker
const processed = bibleLink(
    'In the verse Gen 3:5-6...', 'en', ownLinker)

function ownLinker({
    grabbed,
    language,
    bookIndex,
    chapter,
    verseFrom,
    verseTo
}) {
    return `#${grabbed}#${bookIndex}##`
}

console.log(processed)
// In the verse #Gen 3:5-6#1##...

// Use YouVersion linker
const hyperlink = youVersion(
    'In the verse Gen 3:5-6...', 'en')

console.log(hyperlink)
// In the verse <a href="https://www.bible.com/bible/114/GEN.3.5.6">Gen 3:5-6</a>
1.0.17

2 months ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.2

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago