hotoo/pinyin
:cn: 汉字拼音 ➜ hàn zì pīn yīn observed · 2026-08-28
Health v2 · maintenance only
62/100
- Activity 86
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5880
- days_rel: n/a
- days_push: 85
- n_releases_24m: 0
Adoption not part of the score
7828 stars · 851 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A JavaScript library that converts Chinese characters (Hanzi) to Pinyin, supporting multiple pinyin styles, heteronym (polyphonic) characters, surname mode, and optional word segmentation. It ships as an npm package usable in Node and browsers, plus a companion CLI tool.
Use cases
- convert chinese characters to pinyin
- sort chinese text by pinyin
- add pinyin annotations to hanzi
- get first letters of chinese words for search indexing
- resolve polyphonic chinese characters with word segmentation
- convert chinese names to pinyin with surname handling
When to choose
- you need Chinese-to-Pinyin conversion in Node.js or the browser
- you need multiple pinyin styles, heteronyms, or surname mode
- you want a CLI for quick pinyin conversion
When to avoid
- you need a Python implementation (use python-pinyin instead)
- you need full traditional Chinese or translation features beyond pinyin conversion
Facets
library · maturity active
nlp parser cli internationalization developer-tools browser cli cross-platform pinyin chinese hanzi text-conversion segmentation monorepo natural-language-processing localization command-line nodejs
3 sources
- readme: https://github.com/hotoo/pinyin · fetched 2026-08-28 · d2b954c37e17
- homepage: https://pinyin.js.org · fetched 2026-08-29 · 31090eb55e69
- registry_npm: https://registry.npmjs.org/pinyin · fetched 2026-08-29 · b2ae1a32e392
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| hotoo/pinyin | main | 62 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem