table-of-general-standard-chinese-characters
v0.0.0
Published
Typed JSON package for the Table of General Standard Chinese Characters.
Maintainers
Readme
table-of-general-standard-chinese-characters
Typed JSON distribution of the Table of General Standard Chinese Characters (通用规范汉字表).
This package exports the table as a default ESM import and includes TypeScript definitions.
What this package contains
table-of-general-standard-chinese-characters.json: JSON dataset payloadindex.js: ESM entrypoint that default-exports the JSONindex.d.ts: Type definitions for the exported structure
The exported object shape is:
tier1: first-tier standard characterstier2: second-tier standard characterstier3: third-tier standard characters
Each tier is a string[] of individual Chinese characters.
Install
npm install table-of-general-standard-chinese-charactersUsage
import table from "table-of-general-standard-chinese-characters";
console.log(table.tier1.length);
console.log(table.tier1[0]);You can also import the raw JSON subpath export:
import table from "table-of-general-standard-chinese-characters/table-of-general-standard-chinese-characters.json";