Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Klipbook takes the highlights and notes that you've created on your Kindle and outputs them into nice HTML, Markdown, or JSON.
Klipbook can take your highlights from a clippings file off a physical Kindle device.
Klipbook supports two commands: list
and export
.
list
shows the books in the specified source and export
exports books to a different format.
Both commands require you to specify the source of your clippings.
Copy your clippings file (called "My Clippings.txt" on a 3rd generation Kindle) from your Kindle device to your local drive via USB.
Then specify the path to your clippings via:
$ klipbook list --from-file "My Clippings.txt"
The list
command lists the books available in the specified source.
$ klipbook list --from-file "My Clippings.txt"
Book list:
[1] The Big Sleep by Raymond Chandler
[2] How to jump out of a plane without a parachute and survive by Rip Rockjaw
By default it will only list the latest book. This can be overrided with the --count
switch.
export
reads the clippings from your source and writes them out in the specified format.
You can specify the directory to export into with the --output-dir
switch. This defaults to the current directory.
You can also specify a maximum number of books you'd like exported with the --count
switch.
Klipbook will not overwrite an exiting file by default. You can change this with the --force
flag.
You can export clippings into a pretty html file for each book.
$ klipbook export --from-file "My Clippings.txt" --format html
You can export clippings into a JSON file for each book.
$ klipbook export --from-file "My Clippings.txt" --format json
You can export clippings into a markdown file for each book.
$ klipbook export --from-file "My Clippings.txt" --format markdown
If you don't feel like having your Amazon credentials in your shell history you can set your default source in the klipbook rc file: ~/.klipbookrc
.
This is a YAML file and you can specify default values for the source and the output directory (note the use of snake case) e.g.
$ cat ~/.klipbookrc
:output_dir: /path/to/my/default/output/directory
Command line options override the defaults stored in the rc file.
Klipbook is a Ruby gem. To install simply run:
$ gem install klipbook
Klipbook has been tested on clippings files from 3rd generation Kindles and the Kindle Touch.
Klipbook has been tested on Mac OS High Sierra using Ruby 2.5.1.
Fork the project on Github, add tests for your changes, and submit a well described pull request.
Copyright (c) 2018 Ray Grasso. See LICENSE.txt for further details.
FAQs
Unknown package
We found that klipbook demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.