epubook
TypeScript icon, indicating that this package has built-in type declarations

0.0.11 • Public • Published

epubook

version CI

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

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

Package Sidebar

Install

npm i epubook

Weekly Downloads

6

Version

0.0.11

License

MIT

Unpacked Size

22 kB

Total Files

7

Last publish

Collaborators

  • yjl9903