kindle-clipping-parser

parse kindle clippings.txt to json, manage your note and highlight.

Usage no npm install needed!

<script type="module">
  import kindleClippingParser from 'https://cdn.skypack.dev/kindle-clipping-parser';
</script>

README

Kindle-Clipping

version coverage license

kindle-clipping is a minimalist JavaScript library to parse kindle clippings.txt to json, manage your note and highlight.

Getting Started

Installation

npm install kindle-clipping --save

API

getJson()

kindleClipping().getJson() // get an array of unprocessed notes and highlight objects
// eg.
// [
//   {
//     bookName: 'a book',
//     content: 'excellence—whose greatness',       
//     type: 'Note',
//     page: '37',
//     location: '565',
//     date: 'Friday, February 19, 2021 6:06:48 PM',
//   }
// ]

getMergedJson()

kindleClipping().getMergedJson() // getMergedJson returns an array of combined notes and annotation objects
// eg.
// [
//   {
//     bookName: 'Mindset (Carol Dweck)',
//     content: 'excellence—whose greatness',       
//     type: 'Note',
//     page: '37',
//     location: '565',
//     date: 'Friday, February 19, 2021 6:06:48 PM',
//     note: 'is a note',
//     content: 'highlight content'
//   }
// ]

License

kindle-clipping is licensed under a MIT License.