BindUp

Book Schema

book

A global book configuration object.

Abstract Extensible Status Identifiable Custom Properties Additional Properties Access Restrictions Defined In
Can be instantiated No Unknown status No Forbidden Allowed none book.schema.json

Book Type

object (Book)

Book Properties

Property Type Required Nullable Defined by
manuscript string Required cannot be null Book
formats array Required cannot be null Book
title string Required cannot be null Book
author Multiple Required cannot be null Book
description string Optional cannot be null Book
publisher string Optional cannot be null Book
coverPath string Optional cannot be null Book
tocInTOC boolean Optional cannot be null Book
numberChaptersInTOC boolean Optional cannot be null Book
prependChapterTitles boolean Optional cannot be null Book
date string Optional cannot be null Book
lang string Optional cannot be null Book
css string Optional cannot be null Book
fonts array Optional cannot be null Book
epubVersion number Optional cannot be null Book
fetchTimeout number Optional cannot be null Book
retryTimes number Optional cannot be null Book
batchSize number Optional cannot be null Book
ignoreFailedDownloads boolean Optional cannot be null Book
verbose boolean Optional cannot be null Book

manuscript

The relative path to the manuscript folder.

manuscript

manuscript Type

string

formats

An array of formats you want to print your book in (epub only as of now).

formats

formats Type

string[]

title

The title of the book.

title

title Type

string

author

The author of the book.

author

author Type

string[]

description

The description of the book.

description

description Type

string

publisher

The publisher of the book.

publisher

publisher Type

string

coverPath

The path to the book cover (jpg, png).

coverPath

coverPath Type

string

tocInTOC

(Default true) Whether to show TOC entry in the reader’s Table of Contents; only for EPUB2.

tocInTOC

tocInTOC Type

boolean

numberChaptersInTOC

(Default false) Whether to number the items in the Table of Contents.

numberChaptersInTOC

numberChaptersInTOC Type

boolean

prependChapterTitles

(Default true) Whether to automatically number entries in TOC.

prependChapterTitles

prependChapterTitles Type

boolean

date

(Defaults to today) Publication date

date

date Type

string

lang

(Defaults to en) The book’s language as an ISO language code.

lang

lang Type

string

css

A CSS string that overrides default styles.

css

css Type

string

fonts

Array of fonts to include.

fonts

fonts Type

object[] (Details)

epubVersion

(Default 3) Either 3 or 2. The release version of EPUB to render your book to.

epubVersion

epubVersion Type

number

fetchTimeout

(Default 2000) Timeout time for requests, in milliseconds; Browsers need to support AbortController and signals for this to work.

fetchTimeout

fetchTimeout Type

number

retryTimes

(Default 3) How many times to retry fetching resources.

retryTimes

retryTimes Type

number

batchSize

(Default 100) The size of the batches to use when downloading files.

batchSize

batchSize Type

number

ignoreFailedDownloads

(Default false) Instead of throwing, emit a warning and write an empty file if a font or image fails to download.

ignoreFailedDownloads

ignoreFailedDownloads Type

boolean

verbose

(Default false) Whether to log progress messages; If a function is provided, the first argument will either be ‘log’ or ‘warn’.

verbose

verbose Type

boolean