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

safari-books-csv-to-json

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

safari-books-csv-to-json

Converts an email attachment consisting of an O'Reilly Safari Books CSV highlights export into a JSON object

  • 1.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Converts an email attachment consisting of an O'Reilly Safari Books CSV highlights export into a JSON object

Installation

npm install safari-books-csv-to-json --save

How to retrieve an export of your Safari Books highlights

  1. Navigate to the "Highlights" page on safaribooksonline.com
  2. Select the book you want to export
  3. Select "Export all notes and highlights"

API

toJSON(source) ⇒ Promise.<Object>

Convert a Safari Books CSV highlights export into a JSON object. Rejects if the source isn't a valid Safari Books CSV export. The email is expected to contain at least one CSV attachment.

ParamType
sourceBuffer | Stream | String

Example

const toJSON = require("safari-books-csv-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