1.0.2 • Published 1 year ago

kindle-clippings-to-json v1.0.2

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

Convert an email including Kindle clippings into a JSON object.

Installation

npm install kindle-clippings-to-json --save

How to import your Kindle clippings

  1. Plug your Kindle into a computer using the USB cable
  2. Find the My Clippings.txt file
  3. Copy the clippings you want to import, beginning with the ==========
  4. Paste the clippings into the email body

API

toJSON(email) ⇒ Promise.<Object>

Convert a Kindle clippings email into a JSON object. Rejects if the mail doesn't include valid Kindle clippings.

ParamType
emailBuffer | Stream | String

Example

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

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

1 year ago

1.0.1

1 year ago

1.0.0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago