Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kindle-periodical

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kindle-periodical

create a periodical .mobi, with kindlegen

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

#kindle-periodical create a periodical format .mobi file

<<<<<<< HEAD Kindlegen must NOT be in PATH, will be Downloaded on install

Dependencies

kindlegen must be installed and set as PATH variable or the path to the directory in options.

origin/master

How to install

npm install kindle-periodical
CLI usage
kindle-periodical -f nameOfBook /path/to/.json

<<<<<<< HEAD will reate a compiled folder with the generated book

API usage

======= var periodical = require('kindle-periodical'); periodical.options({ // All of these are optional kindlegenPath: '/path/to/KindleGen', // Path to the directory KindleGen is in, not the executable itself tempDir: '/path/to/temp/directory' // if you want the temp files written somewhere else. Make sure this dir is empty, all files are removed. });

var bookData = {

    "title"         : '<ebook-title>',
    "creator"       : '<creator>',
    "publisher"     : '<publisher>',
    "subject"       : '<subject>',
    "description"   : '<description>',
    "date"          : date // (optional) Javascript date object. If unset, will be new Date()

origin/master

var periodical = require('kindle-periodical');
var bookData = {
    "title"         : 'ebook-title',
    "creator"       : 'creator',
    "publisher"     : 'publisher',
    "subject"       : 'subject',
    "description"   : 'description',
    "sections"      : [{
        "title" : 'title-of-section',
        "articles"  : [{

<<<<<<< HEAD "title" : 'title-of-article', "author" : 'author-of-article', "content" : 'content-of-article'

            "title"     : '<title-of-article>',
            "author"    : '<author-of-article>',
            "content"   : '<content-of-article>' // HTML between the body tags

origin/master }] }] };

periodical.create(bookData, {
    target : '.' // path must exist and be writable
})

Keywords

FAQs

Package last updated on 16 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc