npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

kindle-clippings

v1.0.0

Published

Parse Kindle My Clippings files as a Transform Stream

Downloads

11

Readme

kindle-clippings

Parse Kindle My Clippings files as a Transform Stream

build status

Installation

This module is installed via npm:

$ npm install kindle-clippings

Example Usage

Copy the My Clippings.txt file from your Kindle and then use this module to parse it.

It will be parsed into highlight, bookmark and note entries:

var path = require('path'),
    fs = require('fs'),
    kindleClippings = require('kindle-clippings');

fs.createReadStream('./My Clippings.txt')
  .pipe(kindleClippings())
  .on('data', console.log);

/*
{ title: 'Better Than Before: Mastering the Habits of Our Everyday Lives (Rubin, Gretchen)',
  details:
   { type: 'highlight',
     location: { from: 1041, to: 1044 },
     time: Sat Jul 11 2015 16:27:48 GMT+1000 (AEST) },
  snippet: 'Outer disorder may act as a broken window. The “broken windows” theory of crime prevention was introduced in the 1980s by social scientists who observed that when a community tolerates disorder and petty crime, such as breaking of windows, graffiti, turnstile jumping, or drinking in public, people are more likely to commit more serious crimes. As a law enforcement theory, it’s controversial; but whether or not it’s true on a community-wide level, it’s true on a personal level.' }

  ...

{ title: 'Better Than Before: Mastering the Habits of Our Everyday Lives (Rubin, Gretchen)',
  details:
   { type: 'bookmark',
     page: { from: 91, to: 91 },
     location: { from: 1409, to: 1409 },
     time: Sat Jul 11 2015 19:51:11 GMT+1000 (AEST) },
  snippet: '' }

 ...

{ title: 'The Shallows: What the Internet Is Doing to Our Brains (Carr, Nicholas)',
  details:
   { type: 'note',
     location: { from: 1908, to: 1908 },
     time: Tue Jul 14 2015 16:26:26 GMT+1000 (AEST) },
  snippet: 'It\'s interesting that in most of history, there has always been a great disparity between th number of content creators and content consumers. Thus, those who posess the skils and will to create content have influnce over those who choose only to consume. Perhaps this is changing somewhat with social media, but the fragment of thought are not persuasive as an article or video which has the structure of a beginning, middle and end.' }
*/