Skip to content

A typescript ePub loader library for the browser.

License

Notifications You must be signed in to change notification settings

Makvagabo/epubts

 
 

Repository files navigation

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]);

Publishing

After making all changes and updating the CHANGELOG.md file, run the following commands:

yarn publish --new-version 0.2.0

Where 0.2.0 is the new version number. Note: this will create a git commit and tag. The tag name is the version number without any prefix as configured in the .yarnrc file. The format of the commit message is also specified in the .yarnrc.

Acknowledgements

This project is based on the epub js node library.

License

MIT License

About

A typescript ePub loader library for the browser.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.2%
  • JavaScript 1.8%