@iwater/mdict-ts
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

mdict-ts

mdict (*.mdx, *.mdd) file reader modify to fix error from mdict-ts which rewrite form mdict-js

Note:

Because of TextDecoder API , mdict-ts don't support IE and Edge , but you can use polyfill such as text-encoding.

Installation:

npm i @iwater/mdict-ts

Usage:

    import {Mdict} from '@iwater/mdict-ts'
    const mdict = await Mdict.build(file: File)
    
    mdict.getWordList(query, offset?): Promise<Array<{ word: string, offset: number }>>
    mdict.getDefinition(offset): Promise<string> 

/@iwater/mdict-ts/

    Package Sidebar

    Install

    npm i @iwater/mdict-ts

    Weekly Downloads

    4

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    51.6 kB

    Total Files

    16

    Last publish

    Collaborators

    • iwater