0.9.1 • Published 3 years ago

dict-sd2json v0.9.1

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
3 years ago

dict-sd2json

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/dict-sd2json.git
cd dict-sd2json
yarn install
yarn start

...and you have a running example

API

import { sd2json } from "./dict-sd2json"
let bpath = 'test.ifo'
let respath = test/'test.json'

sd2json(dictpath)
  .then(res=> {
    console.log('DESCR', res.descr)
    console.log('DOCS', res.docs.length)
    fse.writeJsonSync(respath, res.docs, {spaces: 2})
  })

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

other helper modules for diglossa.js:

books:

dicts: