cnchar-trad
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -0,3 +1,18 @@ | ||
import './extend'; | ||
declare const trad: Function; | ||
declare module 'cnchar' { | ||
interface CnCharStatic { | ||
convert: { | ||
simpleToSpark(sentence: string): string; | ||
simpleToTrad(sentence: string): string; | ||
sparkToSimple(sentence: string): string; | ||
sparkToTrad(sentence: string): string; | ||
tradToSimple(sentence: string): string; | ||
tradToSpark(sentence: string): string; | ||
}; | ||
} | ||
} | ||
export default trad; |
{ | ||
"name": "cnchar-trad", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "功能全面、多端支持的汉字拼音笔画js库,支持多音字、繁体字、火星文", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,8 +0,11 @@ | ||
<h1> | ||
<a href="https://github.com/theajack/cnchar">cnchar</a> | ||
<p align="center"> | ||
<img src='https://cdn.jsdelivr.net/gh/theajack/cnchar/dist/rm-logo.png' width='200px'/> | ||
</p> | ||
<p align="center"> | ||
<a href="https://www.github.com/theajack/cnchar"><img src="https://img.shields.io/github/stars/theajack/cnchar.svg?style=social" alt="star"></a> | ||
<a href="https://theajack.gitee.io"><img src="https://img.shields.io/badge/author-theajack-blue.svg?style=social" alt="Author"></a> | ||
</h1> | ||
</p> | ||
<p> | ||
<p align="center"> | ||
<a href="https://www.npmjs.com/package/cnchar"><img src="https://img.shields.io/npm/v/cnchar.svg" alt="Version"></a> | ||
@@ -194,3 +197,3 @@ <a href="https://npmcharts.com/compare/cnchar?minimal=true"><img src="https://img.shields.io/npm/dm/cnchar.svg" alt="Downloads"></a> | ||
``` | ||
npm i cnchar-poly cnchar-order cnchar-trad cnchar-draw | ||
npm i cnchar-poly cnchar-order cnchar-trad cnchar-draw cnchar-idiom cnchar-xhy | ||
``` | ||
@@ -1184,7 +1187,7 @@ | ||
cnchar.compareSpell('ai', 'ai') // 'even' | ||
cnchar.compareSpell('pín', 'pǐn', 'tone') // 'less' | ||
cnchar.compareSpell('pin2', 'pǐn', 'tone') // 'less' | ||
cnchar.compareSpell('频', 'pǐn', 'tone') // 'less' | ||
cnchar.compareSpell('品', '频', 'tone') // 'more' | ||
cnchar.compareSpell('贫', '频', 'tone') // 'even' | ||
cnchar.compareSpell('pín', 'pǐn', true) // 'less' | ||
cnchar.compareSpell('pin2', 'pǐn', true) // 'less' | ||
cnchar.compareSpell('频', 'pǐn', true) // 'less' | ||
cnchar.compareSpell('品', '频', true) // 'more' | ||
cnchar.compareSpell('贫', '频', true) // 'even' | ||
``` | ||
@@ -1191,0 +1194,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
198101
12
1765
1230