Package Exports
- zhuanhua
- zhuanhua/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (zhuanhua) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
simp2trad
简体 ↔ 繁体中文转换工具,零依赖,纯 JS 实现。
安装
npm install simp2trad使用
const { toTraditional, toSimplified, convert } = require('simp2trad');
toTraditional('爱国'); // 愛國
toSimplified('愛國'); // 爱国
convert('学习', 's2t'); // 學習
convert('學習', 't2s'); // 学习License
MIT