kindle-clippings-to-json

1.0.2 • Public • Published

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.

Param Type
email Buffer | Stream | String

Example

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

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

Readme

Keywords

none

Package Sidebar

Install

npm i kindle-clippings-to-json

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

8.33 kB

Total Files

5

Last publish

Collaborators

  • sawyerh