1.2.4 • Published 4 years ago

epub-kit v1.2.4

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

ePub-kit

ePub-kit is a collection of tools for working with epubs.

Installation

npm install epub-kit

Or, to install globally:

npm install -g epub-kit

Usage

const Book = require("epub-kit");
let myEpub = new Book("/path/to/my/book.epub");
myEpub.read()
.then(data => {
    // work with data
});

let info = myEpub.getData(["author", "title"]);
console.log(info) -> {"author": "Andy Weir", "title": "The Martian"}

Where data is an object with the following fields.

FieldData TypeExample
titlestringThe Martian
identifierstring9781101905005
languagestringen
creatorstring or undefinedAndy Weir
contributorstring or undefinedEric White
coveragestring or undefinedLondon
datestring or undefined2000-01-01T00:00:00Z
descriptionstring or undefinedSix days ago, astronaut Mark Watney became one of the first people to walk on Mars...
formatstring or undefined411 Pages
publisherstring or undefinedBroadway Books
relationstring or undefinedA related resource
publisherstring or undefinedBroadway Books
rightsstring or undefinedAll rights reserved
publisherstring or undefinedBroadway Books
sourcestring or undefinedA related resource from which the described resource is derived.
subjectstring or undefinedAdventure stories
typestring or undefinedText
1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago