ulpian / node-ebook-convert

wrapper around calibre's ebook-convert command

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ebook-convert

A wrapper around the command-line tool ebook-convert from Calibre

Usage:

var convert = require('ebook-convert');

var epub = convert({
  source: 'test.html',
  target: 'test.epub',
  arguments: [
    ['--base-font-size', '10'], 
    ['--authors', 'Seth Vincent'],
    ['--extra-css', 'test.css']
  ]
});

epub.on('data', function(data){
    console.log('calibre: ' + data);
});

epub.on('error', function(data){
    console.log('calibreError: ' + error);
    d.reject('Failed to convert book; ' + error);
});

epub.on('close', function(status){
  console.log('calibre: ' + status);
});

Installation:

Install calibre

Install ebook-convert with npm:

npm install ebook-convert

License:

MIT

About

wrapper around calibre's ebook-convert command

License:Other


Languages

Language:JavaScript 86.5%Language:CSS 13.5%