This library aims to convert Epub files into text-only Book structures that can be used to do analysis of the contained text. It is published both as a Rust crate to crates.io and as a NPM package (ESM module) to npm.
- ✅ perform a reasonable conversion into a book with chapters
- ✅ support Epub version 2 table of contents (.ncx)
- ❌ support Epub version 3 table of contents (.xhtml) (not yet implemented, but
many version 3 epubs also include version 2 table of contents, these should also work)
- epubparse-rs: core Rust library that compiles to WASM (published to crates.io)
- epubparse-wasm: wrapper around Rust core that provides JS compatible data types from WASM functions (published to npm, only meant to be consumed by JS lib)
- epubparse-js: JS library with ergonomic API including Typescript definitions (published to npm, for use in Browser and Node.js)
- bump version in
epubparse-rs/Cargo.toml
- bump versions in
epubparse-wasm/Cargo.toml
andepubparse-wasm/package.json
- go to
epubparse-wasm
folder and runbuild_package.sh
- bump version and
epubparse-wasm
dependency verion inepubparse-js/package.json
- commit
cd
into epubparse-rs- run
cargo publish --dry-run
to verify - run
cargo publish
cd
into epubparse-wasm- run
wasm-pack login
- run
wasm-pack publish
- run
npm run build
- run
npm publish