0.2.0 • Published 10 years ago

html-to-mobi v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 years ago

#htmlToMobi create a .mobi file by an given HTML

####How it works

var htmlToMobi      = require('htmlToMobi');

var bookData = {

    "title"         : '<ebook-title>',
    "creator"       : '<creator>',
    "publisher"     : '<publisher>',
    "subject"       : '<subject>',
    "description"   : '<description>',

    "sections"      : [{

        "title" : '<title-of-section>',

        "articles"  : [{
            "title"     : '<title-of-article',
            "author"    : '<author-of-article>',
            "content"   : '<content-of-article>'
        }]
    }]
};

htmlToMobi.create(bookData, {
    target : '.' // create folder
})