dict-sd2json

0.9.1 • Public • Published

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:

/dict-sd2json/

    Package Sidebar

    Install

    npm i dict-sd2json

    Weekly Downloads

    3

    Version

    0.9.1

    License

    GPL-3.0

    Unpacked Size

    24 kB

    Total Files

    10

    Last publish

    Collaborators

    • mbykov