/mobi-zipper

A wrapper around calibre's ebook-convert for creating mobi files

Primary LanguageJavaScriptMIT LicenseMIT

mobi-zipper

NPM version Code Climate CircleCI

Compiles a Mobi file using calibre’s ebook-convert. Returns a promise object.

Install

$ npm i -S mobi-zipper

Usage

import path from 'path'
import zipper from 'mobi-zipper'

const options = {
  input: path.join(__dirname, './epub/OPS/content.opf'),
  output: __dirname,
  clean: true // Removes existing .mobis in the output dir
}

zipper.create(options).catch(console.error)