Skip to content

Pure JavaScript library for converting Hanzi to Pinyin.

Notifications You must be signed in to change notification settings

cicara/tiny-pinyin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jan 22, 2025
758e237 ยท Jan 22, 2025
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025

Repository files navigation

tiny-pinyin

This is a lightweight Chinese character-to-pinyin library that I currently use in conjunction with slug.

Polyphonic characters and tones are not supported.

pnpm add @cicara/tiny-pinyin
import pinyin from "@cicara/tiny-pinyin";

pinyin.convertToPinyin("ๅฎ‰่ฃ…ๅ’Œไฝฟ็”จ", " "); // an zhuang he shi yong

About

Pure JavaScript library for converting Hanzi to Pinyin.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.6%
  • HTML 0.4%