0.3.2 • Published 3 years ago

translate-book v0.3.2

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

Help to read English text

This will help you read books in English more easily. The algorithm parses the book, finds rare words and adds a Russian translation next to them.

Install

npm install translate-book

How to use

const bookUrl = './books/Kerroll_Alice-s-Adventures-in-Wonderland-illustrated.93955.fb2';
// Supports only fb2 books.

const params = {
    maxRate: 10
}

translateBook.translateBookFile(bookUrl, params)
    .then(path => {
        // path to translated book
    })

Available params

  • maxRate - number
  • debug - boolean
  • dist - string

Live demo: translate-book.herokuapp.com

0.3.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.2.0

6 years ago