Skip to content

hakatashi/kindlegen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kindlegen for Node.js

Build Status

Simple Node.js wrapper of the official kindlegen program

Supported

  • Node.js v4 or higher
  • Windows, Linux, OS X
  • Installing kindlegen into your PATH is not required. It will be automatically installed locally.

Install

$ npm install kindlegen

Usage

const kindlegen = require('kindlegen');
const fs = require('fs');

kindlegen(fs.readFileSync('foo.epub'), (error, mobi) => {
	// mobi is an instance of Buffer with the compiled mobi file
});