SkillAgentSearch skills...

Cnchar

🇨🇳 功能全面的汉字工具库 (拼音 笔画 偏旁 成语 语音 可视化等) (Chinese character util)

Install / Use

/learn @theajack/Cnchar
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<p align="center"> <img src='https://fastly.jsdelivr.net/gh/theajack/cnchar/dist/rm-logo.png' width='200px'/> </p> <p align="center"> <a href="https://www.github.com/theajack/cnchar/stargazers" target="_black"> <img src="https://img.shields.io/github/stars/theajack/cnchar?logo=github" alt="stars" /> </a> <a href="https://www.github.com/theajack/cnchar/network/members" target="_black"> <img src="https://img.shields.io/github/forks/theajack/cnchar?logo=github" alt="forks" /> </a> <a href="https://www.npmjs.com/package/cnchar" target="_black"> <img src="https://img.shields.io/npm/v/cnchar?logo=npm" alt="version" /> </a> <a href="https://www.npmjs.com/package/cnchar" target="_black"> <img src="https://img.shields.io/npm/dm/cnchar?color=%23ffca28&logo=npm" alt="downloads" /> </a> <a href="https://www.jsdelivr.com/package/npm/cnchar" target="_black"> <img src="https://data.jsdelivr.com/v1/package/npm/cnchar/badge" alt="jsdelivr" /> </a> </p> <p align="center"> <a href="https://github.com/theajack" target="_black"> <img src="https://img.shields.io/badge/Author-%20theajack%20-7289da.svg?&logo=github" alt="author" /> </a> <a href="https://www.github.com/theajack/cnchar/blob/master/LICENSE" target="_black"> <img src="https://img.shields.io/github/license/theajack/cnchar?color=%232DCE89&logo=github" alt="license" /> </a> <a href="https://fastly.jsdelivr.net/gh/theajack/cnchar/dist/cnchar.latest.min.js"><img src="https://img.shields.io/bundlephobia/minzip/cnchar.svg" alt="Size"></a> <a href="https://github.com/theajack/cnchar/search?l=javascript"><img src="https://img.shields.io/github/languages/top/theajack/cnchar.svg" alt="TopLang"></a> <a href="https://github.com/theajack/cnchar/issues"><img src="https://img.shields.io/github/issues-closed/theajack/cnchar.svg" alt="issue"></a> <a href="https://www.github.com/theajack/cnchar"><img src="https://img.shields.io/librariesio/dependent-repos/npm/cnchar.svg" alt="Dependent"></a> </p> <h3>🚀 功能全面、多端支持的汉字拼音笔画 js 库</h3>

English | 在线试用/文档 | 更新日志 | 反馈错误/缺漏 | Gitee | QQ Group: 958278438 | 留言板

Sponsors

<p align="center"> <a href="https://alinsjs.github.io/docs"> <img width="75" src="https://shiyix.cn/images/alins.png" alt="alins"> </a> <a style="margin-left: 10px" href="https://github.com/lim-f/react-lim"> <img width="80" src="https://shiyix.cn/images/react.svg" alt="alins"> </a> <a style="margin-left: 10px" href="https://github.com/lim-f/vue-lim"> <img width="80" src="https://shiyix.cn/images/vue.svg" alt="alins"> </a> </p>

应用例子

开始文档之前,先通过一些应用案例看看 cnchar 能够做些什么

汉字打字游戏 | 打字弹钢琴 | 成语接龙 | 通讯录排序 | 取名字 | 输入法 | 歇后语 | 语音识别与合成 | 简繁体转换


<details> <summary>展开目录</summary> <!-- toc --> <!-- tocstop --> </details>

前言

感谢同学们对于 cnchar 的支持,由于 cnchar 词库来源于网络,虽然经过了本人的修改和扩充,但是还是难免有错误与缺漏之处,希望大家可以将使用中发现的错误与缺漏之处 反馈 给我(或自行修改提交,经过审查无误过后会合到 cnchar 中)

我要反馈错误或缺漏

关于该文档

由于文档较长,做一下简介,请按照需要阅读

  • 第零章可以帮助开发者快速接入cnchar
  • 第一、二章介绍了cnchar的功能及其功能库
  • 第三章介绍了cnchar的安装和使用
  • 第四章介绍了各种不同环境下cnchar的使用差异
  • 第五章详细介绍了cnchar及其功能库的API使用
  • 第六章列举了各个方法的参数和大量的cnchar使用实例

另外,由于插件较多,编写文档工作量巨大,如有遗漏请参考 cnchar-types 定义。也欢迎大家一起帮忙完善文档

0.快速使用

使用 npm 安装:

npm i cnchar
import cnchar from 'cnchar';
'汉字'.spell();
'汉字'.stroke();

使用 script 标签使用:

如果 jsdelivr 挂了可以使用 unpkg (https://unpkg.com/cnchar/cnchar.min.js)

<script src="https://fastly.jsdelivr.net/npm/cnchar/cnchar.min.js"></script>
<script>
    '汉字'.spell();
    '汉字'.stroke();
</script>

Related Skills

View on GitHub
GitHub Stars3.0k
CategoryDevelopment
Updated1m ago
Forks333

Languages

TypeScript

Security Score

100/100

Audited on Mar 27, 2026

No findings