Skip to content

@gracious.tech/fetch-client / book / BibleBookHtml

Class: BibleBookHtml

book.BibleBookHtml

Access to the HTML text of a Bible book

Methods

get_attribution

get_attribution(license?): string

Get appropriate text for attribution (defaults to first license, optionally provide one)

Parameters

NameType
license?RuntimeLicense

Returns

string

Defined in

client/src/book.ts:67


get_whole

get_whole(«destructured»?): string

Get the HTML for the entire book

Parameters

NameType
«destructured»GetPassageOptions

Returns

string

Defined in

client/src/book.ts:95


get_passage

get_passage(start_chapter, start_verse, end_chapter, end_verse, options?): string

Get HTML for a specific passage

Parameters

NameType
start_chapternumber
start_versenumber
end_chapternumber
end_versenumber
optionsGetPassageOptions

Returns

string

Defined in

client/src/book.ts:100


get_passage_from_ref

get_passage_from_ref(ref, options?): string

Get HTML for a specific passage specified by a PassageReference object

Parameters

NameType
refPassageReference
optionsGetPassageOptions

Returns

string

Defined in

client/src/book.ts:121


get_chapters

get_chapters(first, last, options?): string

Get HTML for multiple chapters

Parameters

NameType
firstnumber
lastnumber
optionsGetPassageOptions

Returns

string

Defined in

client/src/book.ts:133


get_chapter

get_chapter(chapter, options?): string

Get HTML for a single chapter

Parameters

NameType
chapternumber
optionsGetPassageOptions

Returns

string

Defined in

client/src/book.ts:141


get_verse

get_verse(chapter, verse, options?): string

Get HTML for a single verse

Parameters

NameType
chapternumber
versenumber
optionsGetPassageOptions

Returns

string

Defined in

client/src/book.ts:147


get_list

get_list(start_chapter?, start_verse?, end_chapter?, end_verse?): IndividualVerse<string>[]

Get HTML as an array of individual verses (each verse will be in its own paragraph)

Parameters

NameType
start_chapter?number
start_verse?number
end_chapter?number
end_verse?number

Returns

IndividualVerse<string>[]

Defined in

client/src/book.ts:206


get_list_from_ref

get_list_from_ref(ref): IndividualVerse<string>[]

Get HTML as an array of individual verses by passing a PassageReference object

Parameters

NameType
refPassageReference

Returns

IndividualVerse<string>[]

Defined in

client/src/book.ts:218