The sole purpose of this project is essentially to convert Epub files to simple text-only
Book
structures, where a Book
is a tree of Chapter
s that contain text and/or subchapters.
I am just using this to do different kinds of text analysis on a per chapter basis.
At the moment only epub files with epub2 compatible toc (table of content) files (.ncx) are supported. Many epub3 files do contain epub2 toc files for compatibility reasons. I do intend to implement support for epub3 toc files (.xhtml) in the future.
- 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