html-to-mobi

0.2.0 • Public • Published

htmlToMobi

create a .mobi file by an given HTML

How it works

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>'
        }]
    }]
};

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

/html-to-mobi/

    Package Sidebar

    Install

    npm i html-to-mobi

    Weekly Downloads

    5

    Version

    0.2.0

    License

    MIT

    Last publish

    Collaborators

    • moszeed