dong-chinese-dictionary-data
v1.20251225.1
Published
Chinese dictionary data from dong-chinese.com, packaged as a single JSON file with TypeScript types.
Maintainers
Readme
dong-chinese-dictionary-data
Chinese dictionary data from dong-chinese.com/wiki, packaged as individual per-character JSON files with TypeScript types.
Installation
npm install dong-chinese-dictionary-databun add dong-chinese-dictionary-datapnpm add dong-chinese-dictionary-dataUsage
Look up a single character
Loads only the JSON file for the requested character:
import characters from "dong-chinese-dictionary-data";
const data = await characters["你"]?.();Returns undefined if the character is not in the dictionary.
Types
All entries conform to the CharacterData type, re-exported from the package root:
import type { CharacterData } from "dong-chinese-dictionary-data";See character-data.d.ts for the full schema.
Data source
The dictionary data is sourced from https://www.dong-chinese.com/wiki and is the property of its respective authors. This package only converts the upstream JSONL dump to JSON and ships it with TypeScript types — it does not modify the data itself.
License
MIT for the package code. The underlying dictionary data retains its original upstream licensing; see the data source section.
