BibleBooks 2.0.0-dev.5

This is a prerelease version of BibleBooks.
There is a newer prerelease version of this package available.
See the version list below for details.

Requires NuGet 2.12 or higher.

dotnet add package BibleBooks --version 2.0.0-dev.5                
NuGet\Install-Package BibleBooks -Version 2.0.0-dev.5                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BibleBooks" Version="2.0.0-dev.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BibleBooks --version 2.0.0-dev.5                
#r "nuget: BibleBooks, 2.0.0-dev.5"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BibleBooks as a Cake Addin
#addin nuget:?package=BibleBooks&version=2.0.0-dev.5&prerelease

// Install BibleBooks as a Cake Tool
#tool nuget:?package=BibleBooks&version=2.0.0-dev.5&prerelease                

BibleBooks

A library to get info about bible books.

It supports Standard & Thompson abbreviations, OSIS & Paratext codes, max chapters, alternative names, and localized names.

Features

Supported bible book info:

  • Book name
  • Alternative book name
  • OSIS code
  • Paratext code
  • Standard abbreviation
  • Thompson abbreviation
  • Max chapter

Supported Locales

  • English
  • Filipino

Usage

You can use the BibleBooksHelper static class to retrieve the book's info.

using BibleBooks;

var books = (BibleBook[])Enum.GetValues(typeof(BibleBook));
foreach (var book in books) {
  // Standard abbreviation
  Console.WriteLine(BibleBooksHelper.GetStandardAbbreviation(book));
  
  // Thompson abbreviation
  Console.WriteLine(BibleBooksHelper.GetThompsonAbbreviation(book));
  
  // OSIS code
  Console.WriteLine(BibleBooksHelper.GetOsisCode(book));
  
  // Paratext code
  Console.WriteLine(BibleBooksHelper.GetParatextCode(book));
  
  // Max chapter
  Console.WriteLine(BibleBooksHelper.GetMaxChapter(book));
  
  // Alternative book names
  Console.WriteLine(string.Join(",", BibleBooksHelper.GetAlternativeNames(book)));
  
  // Book name - default locale
  Console.WriteLine(BibleBooksHelper.GetName(book));
  
  // Book name - English (en) locale
  Console.WriteLine(BibleBooksHelper.GetName(book, CultureInfos.En));
  
  // Book name - Filipino (fil) locale
  Console.WriteLine(BibleBooksHelper.GetName(book, CultureInfos.Fil));
}

Support

If you like my work and want to support me, buying me a coffee would be awesome! Thanks for your support!

<a href="https://www.buymeacoffee.com/markivandev" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-blue.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>


Mark Ivan BastoGitHub @MarkIvanDevTwitter @Rivolvan_Speaks

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on BibleBooks:

Package Downloads
BibleReference

A library to parse text into bible references in multiple locales.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0-dev.6 78 2/2/2024
2.0.0-dev.5 58 2/2/2024
2.0.0-dev.4 121 2/9/2023
1.5.0-prerelease202210151853 192 10/25/2022
1.4.0 742 10/24/2020
1.3.1 677 4/3/2020
1.3.0 452 4/2/2020
1.2.0 500 4/1/2020
1.1.0 487 3/31/2020
1.0.0 538 3/31/2020