@sole/kindle-clippings-html-formatter

1.0.0 • Public • Published

kindle-clippings-html-formatter

A module to format the clippings from a Kindle device.

This module only formats clippings into HTML. The parsing is done in the kindle-clippings-parser module.

Shared for educational purposes. No support provided.

No Maintenance Intended

Installing

npm install @sole/kindle-clippings-html-formatter

Using

var fs = require('fs');
var parse = require('@sole/kindle-clippings-parser').parse;
var format = require('@sole/kindle-clippings-html-formatter');

var fileContents = fs.readFileSync('clippings.txt', 'utf-8');
var parsed = parse(fileContents);
var htmlOutput = format(parsed);

// done!
console.log(htmlOutput);

There's a working example in example/example.js.

Readme

Keywords

Package Sidebar

Install

npm i @sole/kindle-clippings-html-formatter

Weekly Downloads

0

Version

1.0.0

License

Apache-2.0

Last publish

Collaborators

  • sole