EpKit
An epub development toolkit. Suggestions welcome!
Epkit is both a js library and a cli tool.
Install
However you plan to use epkit, you should first install it using yarn or npm.
$ npm install epkit
Example
Here's an example using the library.
const epkit = ; // Serve the folder (with live reload capabilities)epkit; // Optionally, add a port numberepKit;
The command-line syntax is similar.
$ epkit serve ./ebook --port=8080
Usage
Serve
Serve an unzipped epub with live reloading
Parameters
dir
- relative path to folderoptions
- Optionalport
- Eg. 5500, 4000, etc. (default: 8080)(coming soon!)reload
- Enable live reloading? (default: true)
Zip
Convert a folder to epub format
Parameters
dir
- relative path to folder
Check
Validate an epub file according to the w3 epub specs. Note that this method requires Java (1.6+) installed.
Parameters
file
- relative path to file