3.0.0 • Published 5 years ago
@tangonoya/common v3.0.0
Tangonoya
Data source for Japanese words and kanji.
Usage
JMdict updater
import { updateDatabase } from "@tangonoya/provider-jmdict"updateDatabase(opts = {}): Promise
Updates a MongoDB database with the latest entries from JMdict.
opts.gunzipUrl- Passed togunzip-then-rsyncopts.rsyncSource- Passed togunzip-then-rsync
WaniKani updater
import { updateDatabase } from "@tangonoya/provider-wanikani"updateDatabase(opts): Promise
Updates a MongoDB database with 'subjects' from the WaniKani API.
opts.apiKey- A WaniKani v2 API key.
Townsend updater
import { updateDatabase } from "@tangonoya/provider-townsend"updateDatabase(opts): Promise
Update a MongoDB database with Townsend's phonetic components data.
License
This source code itself is licensed with MIT. However, source files may be licensed under different terms:
- The JMdict is under the EDRDG General Dictionary Licence Statement.
- Usage of the WaniKani API is covered by the WaniKani Terms of Service