npm

@bible-reader/common
TypeScript icon, indicating that this package has built-in type declarations

3.0.2 • Public • Published

Common dependencies for Scripture App packages

This package currently stores data dependencies such as:

  • order of Bible books
  • list of one-chapter Bible books

How to use

import {
  oneChapterBooks,
  booksOrder,
  bookNumbers
} from "@bible-reader/common";

const verseReference = {
  book: "gen",
  chapter: 1,
  verse: 1
};

const bookIndex = bookNumbers[verseReference.book];

function listOneChapterBooks() {
  oneChapterBooks.forEach(index => {
    // prints id of books, like gen. exo, lev, ...
    console.log(booksOrder[index]);
  });
}

/@bible-reader/common/

    Package Sidebar

    Install

    npm i @bible-reader/common

    Weekly Downloads

    1

    Version

    3.0.2

    License

    MIT

    Unpacked Size

    8.42 kB

    Total Files

    15

    Last publish

    Collaborators

    • pavestru