epub-maker2 v3.0.16
epub-maker2
Easily create epub files with javascript
npm i epub-maker2
fork from epub-maker
, old README
demo
- see txt2epub3.ts
EpubMaker.libSlugify
- the default slugify is slugify
- but u can change it if wanna handle cjk/chinese by transliteration
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
- see novel-epub
link
1 year ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago