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
})

Package Sidebar

Install

npm i html-to-mobi

Weekly Downloads

2

Version

0.2.0

License

MIT

Last publish

Collaborators

  • moszeed