Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

epub-maker2

bluelovers308MIT3.0.16TypeScript support: included

Easily create epub files with javascript

archive, book, chapter, comic, creator, ebook, epub, epub-maker, epub-maker2, generator, maker, manifest, metadata, mobile, node-novel, novel, volume, zip, create-by-yarn-tool

readme

epub-maker2

Easily create epub files with javascript

npm i epub-maker2

fork from epub-maker, old README

demo

EpubMaker.libSlugify

import { slugify } from 'transliteration';
// global change
EpubMaker.libSlugify = slugify

// or only runtime
let epub = new EpubMaker({
    libSlugify: slugify,
});

// if can't handle will return '';
epub.slugify('你好,世界');

// if can't handle will return hashSum;
epub.slugifyWithFallback('你好,世界');
export interface ISlugify
{
    (input: string, ...argv): string
}

downloadEpub

this is old epub-maker api, but we split this to optional

u need install by self npm i epub-maker2 file-saver

import EpubMaker from 'epub-maker2';
import 'epub-maker2/src/plugin/file-saver';

let epub = new EpubMaker();

// ...

eoub.downloadEpub(callback, options);

cli

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

3.0.16 (2023-09-20)

🛠 Build System

📌 Dependencies

3.0.15 (2022-11-03)

🛠 Build System

🔖 Miscellaneous

3.0.14 (2022-05-16)

🔖 Miscellaneous

3.0.13 (2022-05-16)

♻️ Chores

3.0.12 (2022-05-16)

♻️ Chores

3.0.11 (2022-05-16)

♻️ Chores

3.0.10 (2021-08-10)

♻️ Chores

3.0.9 (2021-07-21)

✨ Features

♻️ Chores

3.0.8 (2021-07-11)

♻️ Chores

3.0.7 (2021-07-08)

♻️ Chores

3.0.6 (2021-07-08)

🔖 Miscellaneous

3.0.5 (2021-02-12)

♻️ Chores

3.0.4 (2020-08-13)

♻️ Chores

3.0.3 (2020-06-20)

♻️ Chores

3.0.2 (2020-06-09)

Note: Version bump only for package epub-maker2

3.0.1 (2020-06-09)

Features