Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ragaeeb/shamela/llms.txt
Use this file to discover all available pages before exploring further.
Function Signature
Description
Retrieves complete book data including pages and titles as a structured JavaScript object. This is a convenience function that downloads a book’s data and returns it directly. The function handles the temporary database creation and cleanup automatically.Parameters
The unique identifier of the book to retrieve
Returns
Returns a Promise that resolves to aBookData object:
Array of pages in the book
Array of title entries (table of contents)
Example
Error Handling
Throws an error when:- Download fails
- File operations fail
- JSON parsing fails
- Book ID does not exist
Related
- downloadBook() - Download book to file
- getBookMetadata() - Get book metadata
- Content Utilities - Process book content