Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

bible-chichewa

AllBible15MIT1.1.1TypeScript support: included

The Chichewa Bible npm package is an open source project that provides developers with a convenient way to access and work with the Chichewa translation of the Bible within their Node.js applications.

chichewa, bible, mau

readme

Chichewa Bible npm Package

Static Badge Static Badge Static Badge Static Badge

The Chichewa Bible npm package is an open source project that provides developers with a convenient way to access and work with the Chichewa translation of the Bible within their Node.js applications. This package aims to simplify the integration of Chichewa Bible text into various projects, such as language learning apps, Bible study tools, and more.

Features

  • Access verses, chapters, and books of the Chichewa Bible programmatically.
  • Retrieve text content in Chichewa for quoting, referencing, and display.
  • Flexible search functionality for finding specific passages or keywords.
  • Lightweight and easy-to-use API for seamless integration into Node.js applications.
  • Continuously updated to reflect the latest versions of the Chichewa Bible text.

Installation

You can install the Chichewa Bible npm package using npm:

npm install chichewa-bible

OR

yarn add chichewa-bible

Examples

To use the bible-chichewa library to retrieve a verse from the Chichewa Bible, follow these steps:

Example: Retrieving a Bible Verse

const { getVerse, BOOK } = require('bible-chichewa');
const book = BOOK.Genesis;
const chapter = 1;
const verse = 1;

const verseText = getVerse(book, chapter, verse);
console.log(`Verse ${book} ${chapter}:${verse}: ${verseText}`);

Example: Retrieving a Bible Chapter

const { getChapter, BOOK } = require('bible-chichewa');

const book = BOOK.Genesis;
const chapter = 1;

const chapterVerses = getChapter(book, chapter);

console.log(`Chapter ${book} ${chapter}:`);
chapterVerses.forEach((verse, index) => {
  console.log(`${index + 1}: ${verse}`);
});

Example: Retrieving a Bible Verses within Range

const { getVerses, BOOK } = require('bible-chichewa');

const book = BOOK.Exodus;
const chapter = 20;
const verseStart = 1;
const verseEnd = 5;

const verses = getVerses(book, chapter, verseStart, verseEnd);

console.log(`Verses ${book} ${chapter}:${verseStart}-${verseEnd}:`);
verses.forEach((verse, index) => {
  console.log(`${verseStart + index}: ${verse}`);
});
Buy Me A Coffee