Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/opf"

Wrapper around the package. The details of the various entries are in the EPUB 3.3 Specification.

The module relies on the xmlbuilder2 package, which generates an XML file out of a set of JS objects. See the documentation of that library for the details; the short overview is:

  • JSON names starting with "@"" represent an attribute.
  • JSON name "#"" represent textual content of the element.
  • Otherwise a JSON name refers to an embedded dictionary representing a subelement in XML.

The core of the module is in the PackageWrapper class.

Index