kindle-clippings-parser

Parse My Clippings.txt through streams

Usage no npm install needed!

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

README

kindle-clippings-parser

Parse My Clippings.txt through streams

Usage

var fs = require('fs');
var klipper = require('kindle-clippings-parser');

var clippings = fs.createReadStream('My Clippings.txt', { encoding: 'utf8' });

klipper(clippings)
  .on('data', function(section) {
    // JSON section
  })
  .on('end', function(err) {
    // Finished
  });