Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 331 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 331 Bytes

Usage

pnpm i @lemonnn/epub-parser
import epub from '@lemonnn/epub-parser'

// the relative path with current workspace root path
const TEST_FILE = path.resolve("src/public/1.epub")

const fn = async () => {
    const book = await epub(TEST_FILE);
    const toc = book.getTOC()
    console.log(toc);
}

fn()