Reference
Kanji stroke counts
import { … } from "@johnmorrisdotca/bushu/strokes";
17.1 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
KANJI_STROKES | constant | THE STROKE COUNT OF EVERY KANJI IN THE RADICAL INDEX, from KANJIDIC2. |
sortByStrokes | function | The kanji with the fewest strokes first; kanji with the same count keep the order they were given in, and a character with no count goes last. |
strokesOf | function | The strokes in a kanji, or null for a character the index does not hold. |