BibleBooks 2.0.0-dev.7
Requires NuGet 2.12 or higher.
dotnet add package BibleBooks --version 2.0.0-dev.7
NuGet\Install-Package BibleBooks -Version 2.0.0-dev.7
<PackageReference Include="BibleBooks" Version="2.0.0-dev.7" />
<PackageVersion Include="BibleBooks" Version="2.0.0-dev.7" />
<PackageReference Include="BibleBooks" />
paket add BibleBooks --version 2.0.0-dev.7
#r "nuget: BibleBooks, 2.0.0-dev.7"
#addin nuget:?package=BibleBooks&version=2.0.0-dev.7&prerelease
#tool nuget:?package=BibleBooks&version=2.0.0-dev.7&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 Basto • GitHub @MarkIvanDev • Twitter @Rivolvan_Speaks
Learn more about Target Frameworks and .NET Standard.
-
- BibleBooks.Core.fil-PH (>= 2.0.0-dev.7)
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.7 | 111 | 3/19/2025 |
2.0.0-dev.6 | 87 | 2/2/2024 |
2.0.0-dev.5 | 65 | 2/2/2024 |
2.0.0-dev.4 | 236 | 2/9/2023 |
1.5.0-prerelease202210151853 | 208 | 10/25/2022 |
1.4.0 | 777 | 10/24/2020 |
1.3.1 | 706 | 4/3/2020 |
1.3.0 | 484 | 4/2/2020 |
1.2.0 | 530 | 4/1/2020 |
1.1.0 | 516 | 3/31/2020 |
1.0.0 | 568 | 3/31/2020 |