vocabulary-to-anki
Set of tools to work with Kindle Vocabulary Builder
Prerequisites
Before using the library, make sure you have access to the vocab.db file from Kindle. The easiest way is to plug in your Kindle device and find the file at /Volumes/Kindle/system/vocabulary/vocab.db (default path on MacOS)
Install
npm install kindle-vocab-tools
Usage
import KindleVocabTools from "kindle-vocab-tools"; const db = new KindleVocabTools({ pathToDB: "/Volumes/Kindle/system/vocabulary/vocab.db", }); await db.init(); const books = await db.getAllBooks(); for (const book of books) { const lookups = await db.getLookupsByBook(book.id); console.log(lookups); }