New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

kindle-email-to-json

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kindle-email-to-json

Convert an email export of Kindle notes into a JSON object

  • 2.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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);
});

FAQs

Package last updated on 27 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc