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:

Dependencies (4)

Dev Dependencies (5)

Package Sidebar

Install

npm i dict-sd2json

Weekly Downloads

1

Version

0.9.1

License

GPL-3.0

Unpacked Size

24 kB

Total Files

10

Last publish

Collaborators

  • mbykov