Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhangchen915/mdict-ts
https://github.com/zhangchen915/mdict-ts
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/zhangchen915/mdict-ts
- Owner: zhangchen915
- Created: 2019-02-26T09:49:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-30T15:19:58.000Z (about 4 years ago)
- Last Synced: 2024-10-06T06:05:56.792Z (about 1 month ago)
- Language: TypeScript
- Size: 38.1 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## mdict-ts
mdict (*.mdx, *.mdd) file reader
rewrite form [mdict-js](https://github.com/fengdh/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 mdict-ts`
#### Usage:
```ts
import {Mdict} from 'mdict-ts'
const mdict = new Mdict(file: File)
mdict.getWordList(query, offset?): Promise>
mdict.getDefinition(offset): Promise
```