Home
Softono

Epubook

Open source MIT TypeScript
12
Stars
1
Forks
6
Issues
0
Watchers
3 months
Last Commit

 About Epubook

A Node EPUB 3 generation library

Platforms

Web Self-hosted

Languages

TypeScript

Need Help Installing Epubook?

We provide expert installation service for this software. Our team will install, configure, and secure Epubook on your server. plans start at just $30.

epubook

version CI

A Node EPUB 3 generation library which supports from low-level API to high-level ebook abstraction with customizable themes.

[!WARNING] This library is still under active development.

Usage

Library

npm i epubook
import { Epubook } from 'epubook'

const ebook = await Epubook.create({
  title: 'title',
  description: 'something'
})

const cover = await ebook.cover('./assets/cover.jpg')
const main = ebook.page('chapter', { title: 'Main', content: 'Hello, World!' })

ebook.toc(cover, main)

await ebook.writeFile('./output.epub')

You can see full generation demo here.

CLI

npm i -g @epubook/cli

epubook --version

epubook --help

Resources

License

MIT License © 2023 XLor