html-epub
This module is responsible for converting an array of HTML chapters (plus a book metadata object) into an EPUB archive.
The output is a stream which can either be piped to an HTTP response or output to a file.
See pubsweet-component-epub for an example implementation.
Install
npm install html-epub
or
yarn add html-epub
Example usage in Express
app