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

epub2html

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

epub2html

Converts internal metadata of Epub files to useful structural markup.

  • 0.0.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

epub2html

What It Does

This module is a wrapper module. It is meant to encapsulate epub-parser for systems that wish to restrusture parsed EPUB data into useful HTML document fragments. In essence, it turns Epub metadata into useful structural markup. Use it instead of epub-parser in any web-based reading system, or use it as a model for creating your own useful wrapper around epub-parser.

The #parse function wraps epub-parser's #open function, passing the callback right through to it. Pass an EPUB URL or full local filepath to it.

You can then call #getParser, #getFile, #getFiles, or #convertMetadata. The latter function returns an HTML version of some of the stored metadata suitable for insertion into the head of a web page. The #getFile and #getFiles functions return single file or entire file list, respectively, while #getParser gives you direct access to the epub-parser instantiation (instantiated AND initialized via the #open call).

Installing

npm install epub2html

Keywords

FAQs

Package last updated on 15 Aug 2013

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