Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

s2t-chinese

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

s2t-chinese - npm Package Compare versions

Comparing version 0.0.1 to 0.0.3-beta.0

26

index.d.ts

@@ -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 };

8

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc