mobi-zipper
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)