2.0.3 • Published 1 year ago

kindle-email-to-json v2.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
1 year ago

Convert an email export of Kindle notes into a JSON object.

Installation

npm install kindle-email-to-json --save

How to email an export of your Kindle highlights

If you're reading on the Kindle iOS or Android app:

  1. Open the "Notebook" section of your book where your annotations are kept
  2. Tap the "Share" icon, then tap "Export as HTML"
  3. Email the export as an attachment

API

toJSON(email) ⇒ Promise.<Object>

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.

ParamType
emailBuffer | Stream | String

Example

const toJSON = require("kindle-email-to-json");
const email = readFile(emailPath);

toJSON(email).then(data => {
  console.log(data);
});
2.0.3

1 year ago

2.0.2

2 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.4.0

4 years ago

1.3.0

5 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago