Convert an email export of Kindle notes into a JSON object.
npm install kindle-email-to-json --save
If you're reading on the Kindle iOS or Android app:
- Open the "Notebook" section of your book where your annotations are kept
- Tap the "Share" icon, then tap "Export as HTML"
- Email the export as an attachment
Convert a Kindle notes email export into a JSON object. Rejects if the mail isn't a valid Kindle notes export. The email is expected to contain at least one HTML attachment.
Param | Type |
---|---|
Buffer | Stream | String |
const toJSON = require("kindle-email-to-json");
const email = readFile(emailPath);
toJSON(email).then(data => {
console.log(data);
});