Socket
Socket
Sign inDemoInstall

bible-translation-lookup

Package Overview
Dependencies
1
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bible-translation-lookup

A simple bible translation lookup


Version published
Weekly downloads
15
increased by1400%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

bible-translation-lookup

build coverage npm dependencies downloads

A simple bible translation lookup


Introduction

bible-translation-lookup gets a bible translation JSON object when given a bible translation name, abbreviation or alias.

It works in Node code and browsers.


Usage

npm install --save bible-translation-lookup

const btl = require('bible-translation-lookup')
const translation1 = btl('KJV')
const translation2 = btl('New English Translation')
console.log(translation1.name) // King James Version
console.log(translation2.abbr) // NET

Browser usage

npm install --save bible-translation-lookup

Add a script tag in head:

<script src="node_modules/bible-translation-lookup/bibleTranslationLookup.js"></script>

Then use as follows:

<script>
  const translation1 = bibleTranslationLookup('ASV')
  const translation2 = bibleTranslationLookup('New King James Version')
  console.log(translation1.name) // American Standard Version
  console.log(translation2.abbr) // NKJV
</script>

JSON structure

bible-translation-lookup returns a JSON object with the following structure:

{
  "abbr": "DARBY",
  "name": "Darby Translation",
  "aliases": ["Darby Bible", "Darby Bible Translation", "DBY"]
}

If a translation cannot be found then undefined is returned.


Supported translations

bible-translation-lookup supports the translations listed in bible-translations.json

This is not an exhaustive list.

If you want support for another translation please raise an issue


Author says

God was kind to reveal his character to us in Jesus and in the bible. Let's read it.

but his delight is in the law of the Lord, and on his law he meditates day and night. He is like a tree planted by streams of water that yields its fruit in its season, and its leaf does not wither. In all that he does, he prospers.

Psalm 1:2-3 ESV




Keywords

FAQs

Last updated on 05 Jan 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc