update README
This commit is contained in:
1 parent
b4bda0ccbf
commit
d2599f1efc
5 files changed
+32
-12
No files matched your search
@@ -61,11 +61,11 @@ async function makeWaniKaniKanjiLevels(opts: { cache?: boolean } = {}) {
|
||||
return levelMap;
|
||||
}
|
||||
|
||||
export async function makeKanjiLevels() {
|
||||
export async function makeKanjiLevels(opts: { useBeyond: boolean }) {
|
||||
const wk = await makeWaniKaniKanjiLevels({ cache: true });
|
||||
const beyond = yaml.load(
|
||||
readFileSync('assets/beyond.yaml', 'utf-8'),
|
||||
) as ILevelMap;
|
||||
const beyond = opts.useBeyond
|
||||
? (yaml.load(readFileSync('assets/beyond.yaml', 'utf-8')) as ILevelMap)
|
||||
: {};
|
||||
|
||||
const kanjiToLevel = new Map<
|
||||
string,
|
||||
|
||||
Reference in new issue
Block a user