• Stars
    star
    1
  • Language
    JavaScript
  • Created over 5 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Converter from FB2 books to HTML

Install

npm install fb2html --save

Example

const FB2HTML = require('fb2html');
const options = {
    hyphenate: true
}
const book = new FB2HTML(data);
const result = book.format();

Options

  • hyphenate (boolean) - using Hyphen plugin if language present in book

Methods

  • getTitle() (string)
  • getAuthors() (string)
  • getGenres() (string)
  • getAnnotation() (string)
  • getCover() (string) - url or base64 image
  • getBody() (string)
  • getLanguage() (string)
  • getTranslators() (string)
  • getKeywords() (string)