2.0.0 • Published 5 years ago

kindle-periodical v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

kindle-periodical

create a periodical format .mobi file

Support

Buy me a Coffee

Features

  • Kindlegen will be installed automatically
  • usable as CLI and programmatically
  • support for remote webpages ( will be downloaded with node-readability ) and files
  • Markdown

How to install

npm install kindle-periodical

Kindlegen must NOT be in PATH, will be downloaded on install!

CLI usage

kindle-periodical -f nameOfBook /path/to/.json

-f --filename   name of created .mobi
-o --output     folder of created .mobi

will create a compiled folder with the generated book

API usage

var periodical = require('kindle-periodical');
var bookData = {
    "title"         : 'ebook-title',
    "creator"       : 'creator',
    "publisher"     : 'publisher',
    "subject"       : 'subject',
    "language"      : 'language (en-Gb, de-De)',
    "cover"         : "path-to-cover",
    "description"   : 'description',
    "sections"      : [{
        "title" : 'title-of-section',
        "articles"  : [{
            "title"  : 'title-of-article',
            "author" : 'author-of-article',
            "content": 'content-of-article'
            "file"   : "path-to-local-file",
            "url"    : 'url-to-a-website'
        }]
    }]
};

periodical.create(bookData, {
    targetFolder: '.' // where should the mobi file go
})
  • content supports HTML and Markdown
  • file full path to a local folder
  • url accepts a website url
  • if url or file is set, the content field will be ignored.
2.0.0

5 years ago

1.6.6

6 years ago

1.6.5

6 years ago

1.6.4

6 years ago

1.6.3

6 years ago

1.6.2

6 years ago

1.6.1

6 years ago

1.6.0

6 years ago

1.5.5

6 years ago

1.5.4

6 years ago

1.5.3

6 years ago

1.5.2

6 years ago

1.5.1

6 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.2.5

10 years ago

0.2.1

10 years ago