epubparse-js
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

Epubparse-js

⚠️ Work in progress

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. See the project repo for all components. This is the JS wrapper library to expose a JS API for the WASM core.

Design goals

  • 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)

Development

Tests should be run with Node 16, two experimental flags are used to deal with ESM modules and WASM:

  • --experimental-specifier-resolution=node
  • --experimental-wasm-modules

Readme

Keywords

none

Package Sidebar

Install

npm i epubparse-js

Weekly Downloads

0

Version

0.2.2

License

MIT

Unpacked Size

4.4 kB

Total Files

8

Last publish

Collaborators

  • jannesdev