Convert an email including Kindle clippings into a JSON object.
Installation
npm install kindle-clippings-to-json --save
How to import your Kindle clippings
- Plug your Kindle into a computer using the USB cable
- Find the
My Clippings.txt
file - Copy the clippings you want to import, beginning with the
==========
- 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);
});