No Plugins; Monolithic

    dgl-utils

    0.8.2 • Public • Published

    book-fb2json

    helper module for the diglossa.js: https://github.com/mbykov/diglossa.js.git

    Quick start

    Make sure you have Node.js installed, then type the following commands

    git clone https://github.com/mbykov/book-fb2json.git
    cd book-fb2json
    yarn install
    yarn start
    

    ...and you have a running example

    API

    import { fb2json } from "./book-fb2json"
    let bpath = 'test.fb2'
    
    or
    
    let bpath = 'test.fb2.zip'
    
    async function start(bpath) {
      let {descr, docs, imgs} = await fb2json(bpath)
      console.log('_descr:', descr)
      console.log('_docs:', docs.length)
      console.log('_imgs:', imgs.length)
    }

    Note: no errors, don't know why Github highlights some code in red

    other helper modules for diglossa.js:

    - books:
    - https://github.com/mbykov/book-epub2json
    - https://github.com/mbykov/book-fb2json
    - https://github.com/mbykov/book-md2json
    - https://github.com/mbykov/book-pdf2json
    -
    - dicts:
    - https://github.com/mbykov/dict-sd2json
    - dict-dsl2json

    Keywords

    none

    Install

    npm i dgl-utils

    DownloadsWeekly Downloads

    4

    Version

    0.8.2

    License

    MIT

    Unpacked Size

    32.6 kB

    Total Files

    11

    Last publish

    Collaborators

    • mbykov