0.2.0 • Published 10 months ago

epubts v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

epubts

A typescript ePub loader library for the browser. Works on browser File objects.

Usage

// Load Epub singleton
import Epub from "epubts";
// Load your file
const epub = await Epub.load(epubFile);
// Get the items ids of the content
const spineItemIds = epub.spine.contents.map(item => item.id);
// Load chapter data
const chapterData = await epub.getChapter(spineItemIds[0]);

Acknowledgements

This project is based on the epub js node library.

License

MIT License

0.2.0

10 months ago

0.1.6

10 months ago

0.1.5

10 months ago

0.1.2

10 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.1

1 year ago

0.1.0

1 year ago