s2t-chinese
Advanced tools
Comparing version 0.0.1 to 0.0.3-beta.0
@@ -1,3 +0,25 @@ | ||
declare const Chinese: (str: string, type: 's2t' | 't2s') => string | undefined; | ||
interface Custom { | ||
src: string; | ||
des: string; | ||
} | ||
declare type CustomStr = Array<Custom>; | ||
declare const Chinese: { | ||
/** | ||
* | ||
* @param {(str,custom) => string} | ||
* @param {string} str 需要转换的字符 | ||
* @param {CustomStr} custom 自定义的字符 | ||
* @returns {string} | ||
*/ | ||
s2t: (str: string, custom?: CustomStr) => string; | ||
/** | ||
* | ||
* @param {(str,custom) => string} | ||
* @param {string} str 需要转换的字符 | ||
* @param {CustomStr} custom 自定义的字符 | ||
* @returns {string} | ||
*/ | ||
t2s: (str: string, custom?: CustomStr) => string; | ||
}; | ||
export { Chinese }; | ||
export { Chinese, CustomStr }; |
{ | ||
"name": "s2t-chinese", | ||
"version": "0.0.1", | ||
"version": "0.0.3-beta.0", | ||
"description": "A tool to convert Simplified Chinese and Traditional Chinese to each other", | ||
@@ -17,3 +17,3 @@ "scripts": { | ||
"type": "git", | ||
"url": "git+https://github.com/yang1206/chinese-s2t.git" | ||
"url": "git+https://github.com/yang1206/s2t-chinese.git" | ||
}, | ||
@@ -41,5 +41,5 @@ "main": "dist/index.cjs", | ||
"bugs": { | ||
"url": "https://github.com/yang1206/chinese-s2t/issues" | ||
"url": "https://github.com/yang1206/s2t-chinese/issues" | ||
}, | ||
"homepage": "https://github.com/yang1206/chinese-s2t#readme", | ||
"homepage": "https://github.com/yang1206/s2t-chinese#readme", | ||
"devDependencies": { | ||
@@ -46,0 +46,0 @@ "@antfu/eslint-config": "^0.23.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
67376
384