https://github.com/ykrods/comic-epub-writer
A javascript library to create comic epub file.
https://github.com/ykrods/comic-epub-writer
Last synced: about 2 months ago
JSON representation
A javascript library to create comic epub file.
- Host: GitHub
- URL: https://github.com/ykrods/comic-epub-writer
- Owner: ykrods
- License: mit
- Created: 2019-08-07T05:53:46.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T06:21:06.000Z (over 2 years ago)
- Last Synced: 2024-03-20T09:21:07.748Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 83 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# comic-epub-writer
[WIP] A javascript library to create comic epub file.
# Installation
WIP
# Usage
```javascript
const fs = require('fs');const writer = require('epub-comic-writer');
const epub = {
title: 'title 01',
title_file_as: 'title_01',
author: 'Author',
language: 'ja',
cover: './images/cover.jpg',
chapters: [
{
title: 'chapter01',
pages: ['./images/p001.jpg'],
},
],
direction: 'rtl',
pageWidth: 800,
pageHeight: 1200,
pageBgColor: '#FFFFFF',
};writer.write(epub).then(content => {
fs.writeFile('./tmp/hello.epub', content, (error) => {
if (!error) {
console.log("save");
} else {
console.log(error);
}
});
});
```# TODO
- [ ] browser support
- [ ] documentation