#epub #chapter #parser #cover #title #file #toc

r-epub

Library to support parse .epub file

4 releases

0.2.2 May 16, 2024
0.2.1 May 14, 2024
0.2.0 May 14, 2024
0.1.0 May 13, 2024

#4 in #cover

Download history 43/week @ 2024-07-28 6/week @ 2024-09-22

133 downloads per month

MIT license

20KB
540 lines

How to use


let path = "demo.epub";
let extract_path = Some("demo");
let epub = EpubContainer::parse(path, extract_path).unwrap();

// Get cover
let cover = epub.cover();

// Get title
let title = epub.title();

// Get toc
let toc = epub.toc();

// Get chapter
let ch = epub.get_chapter(2).unwrap();
println!("ch: {:?}", ch);

Dependencies

~6–12MB
~140K SLoC