0.5.0 • Published 2 years ago
not_enough_bibles v0.5.0
Not Enough Bibles
Fetches texts from https://bible-api.com, because honestly the world really needed another bible wrapper on npm
Installation
npm i not_enough_bibles
Usage
// JavaScript usage
const { get_passage } = require("not_enough_bibles");
// TypeScript usage
import { get_passage } from "not_enough_bibles";
async function main() {
const p1 = await get_passage("Genesis 1:1-3", { translation: "web", processText: true, maxChars: 50 });
const p2 = await get_passage("John 3:16");
console.log(p1.text);
console.log("\n\n")
console.log(p2.text);
}
main();
Expected output:
In the beginning, God created the heavens and the earth. The earth was formless and empty. Darkness was on the surface of the deep and God’s Spirit was hovering over the surface of the waters. God said, “Let there be light,” and there was light. For God so loved the world, that he gave his one and only Son, that whoever believes in him should not perish, but have eternal life.