Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

fxlepub3

0.5.2 • Public • Published

epub-gen - a library to make EPUBs from HTML

fxlepub3

generate EPUB from images in Node.js.

Usage

npm install fxlepub3

Demo Code:

var epub = require('fxlepub3'); 
 
var data={
"url":"C:/Users/user/Downloads/comic/testdata/",
"output":'C:/Users/user/Downloads/comic/fxlsample/out.epub',
"title": "タイトル",
"author1": "著者名1",
"author2": "著者名2",
"index": [
    ["cover.jpg", "表紙"],
    ["00001.jpg", "目次"],
    ["00005.jpg", "最終ページ"]
    ],
"page_direction": "rtl",
"panel_view": "horizontal-rl",
//"width": 800,
//"height": 1200,
"cover_file": {},
"files": []
}
 
epub.gen(data)

install

npm i fxlepub3

Downloadsweekly downloads

3

version

0.5.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability