npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

orthodox-nkjv

v1.0.3

Published

Node.js module containing the text of the Orthodox Canon of the New King James Version (NKJV) Bible

Downloads

8

Readme

Orthodox NKJV

The books from the Orthodox canon are being added in future updates to provide the complete collection of Eastern Orthodox Christian books of the bible..

  • [x] Tobit
  • [ ] Judith
  • [ ] Wisdom of Solomon
  • [ ] Sirach (Ecclesiasticus)
  • [ ] Baruch
  • [ ] 1 Maccabees
  • [ ] 2 Maccabees
  • [ ] 1 Esdras
  • [ ] Prayer of Manasseh
  • [ ] Psalm 151

Node Module

orthodox-nkjv is a Node.js module that contains the complete text of the New King James Version (NKJV) Bible, organized in separate JSON, XML, and Markdown files for each book.

npm install orthodox-nkjv


Scripts

This is a work in progress. Until we have all 76 book of the Eastern Orthodox NKJV, there are some helpful scripts in the /scripts directory that will convert a book in any format to any other format.

Markdown is the least reliable source file from which to product JSON and then subsequently XML. But, there is a Markdown to JSON script which will work and seems to be the best option for preparing the text by hand.

Convert Markdown to JSON

From the root directory of the project, run:

node scripts/convert_markdown_to_json.js Tobit

In this case the script will find a file in the markdown directory and create a file called tobit.md in the markdown directory.

The markdown file must be formatted without error or the script will choke. See /books/markdown/tobit.md for an example of clean and correct formatting.

Convert JSON to XML

To convert a specific book (e.g., tobit) to XML:

node scripts/convert_json_to_xml.js tobit

To convert all JSON files to XML:

node scripts/convert_json_to_xml.js or node scripts/convert_json_to_xml.js *

Convert JSON to MD

node scripts/convert_json_to_markdown.js


Folder Structure

The project is structured as follows:

|- books/
|  |- json/
|  |  |- 1-chronicles.json
|  |  |- 1-corinthians.json
|  |  |- ... (other JSON files for each book)
|  |
|  |- markdown/
|  |  |- 1-chronicles.md
|  |  |- 1-corinthians.md
|  |  |- ... (other Markdown files for each book)
|  |
|  |- xml/
|     |- 1-chronicles.xml
|     |- 1-corinthians.xml
|     |- ... (other XML files for each book)
|
|- examples/
|  |- bibleReader.ts
|  |- other-examples.ts
|
|- scripts/
|  |- convert_markdown_to_json.js
|
|- README.md
|- package.json
|- package-lock.json
  • The books folder contains individual JSON, XML and Markdown (.md) files, each representing a book from the Eastern ORthodox New King James Version of the Bible. These files hold the structured text data, organized into chapters and verses.

  • The examples folder includes TypeScript example files that demonstrate how to access and use the NKJV Bible data from this module.

  • the scripts folder contains scripts for converting Markdown files in to JSON and JSON into XML

Installation

This module can be installed via npm. Simply include it as a dependency in your Node.js project's package.json file:

"dependencies": {
  "orthodox-nkjv": "0.1.0"
}

Usage

To access the NKJV Bible data in your TypeScript/JavaScript project, follow these steps:

Install the Module: Install the orthodox-nkjv module using npm as described above.

Import and Use in Your Code: Use the readBibleBook function from the orthodox-nkjv module to read data from a specific book.

import * as path from 'path';

async function readBibleBook(bookName: string): Promise<any> {
  try {
    const filePath = path.join(__dirname, 'books', `${bookName.toLowerCase()}.json`);
    const jsonData = await fsPromises.readFile(filePath, 'utf-8');
    return JSON.parse(jsonData);
  } catch (error) {
    console.error(`Error reading ${bookName}: ${error.message}`);
    return null;
  }
}

async function main() {
  const genesisData = await readBibleBook('Genesis');
  if (genesisData) {
    console.log(genesisData); // Bible data for the book of Genesis
  }
}

main();

Explore Other Examples:

Check out the files in the examples folder for more TypeScript examples on how to interact with the NKJV Bible data.

Contributing

Contributions to this project are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project, specifically the node module alone is licensed under the MIT License.

Copyright Notice

The text of the New King James Version® (NKJV®) used in this project is copyrighted and owned by Thomas Nelson, Inc. The use of the NKJV text is done so in accordance with the following qualifications:

  • Up to and including 1,000 verses may be quoted in printed form as long as the verses quoted amount to less than 50% of a complete book of the Bible and make up less than 50% of the total work in which they are quoted.
  • All NKJV quotations must conform accurately to the NKJV text.
  • Any use of the NKJV text must include a proper acknowledgment as follows: "Scripture taken from the New King James Version®. Copyright © 1982 by Thomas Nelson, Inc. Used by permission. All rights reserved."

For more information regarding the quotation permission policy for the New King James Version, please visit thomasnelson.com.

The text of the St. Athanasius Academy SeptuagintTM (SAASTM) is also copyrighted and owned by St. Athanasius Academy of Orthodox Theology. The use of the SAAS text is done so in accordance with the following qualifications:

  • Up to and including 1,000 verses may be quoted in printed form as long as the verses quoted amount to less than 50% of a complete book of the Bible and make up less than 50% of the total work in which they are quoted.
  • All SAAS quotations must conform accurately to the SAAS text.
  • Any use of the SAAS text must include a proper acknowledgment as follows: "Scripture taken from the St. Athanasius Academy SeptuagintTM. Copyright © 2008 by St. Athanasius Academy of Orthodox Theology. Used by permission. All rights reserved."
  • When quotations from the SAAS text are used in church bulletins, orders of service, Sunday School lessons, church newsletters, and similar works in the course of religious instruction or services at a place of worship or other religious assembly, the following notice may be used at the end of each quotation: "SAAS."