1.1.3 • Published 1 year ago

safari-books-csv-to-json v1.1.3

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

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

1 year ago

1.1.2

1 year ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago