New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ding-trans

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ding-trans - npm Package Compare versions

Comparing version 1.0.32 to 1.0.33

13

bin/translate.js

@@ -11,4 +11,7 @@ #! /usr/bin/env node

require("colors");
// let colors = require("colors");
// console.log("测试文本".bold.red);
// automatically pick platform
const say = require("say");
const querystring = require("querystring");
//=======================================================
let argv = require("yargs").argv,

@@ -21,2 +24,8 @@ queryStr = encodeURI(argv._.join(" ")),

} else {
// console.log(argv);
console.log("播放中...".green);
if (argv.say == true || argv.S == true) {
say.speak(querystring.unescape(queryStr));
return;
}
sendInfo(queryStr);

@@ -23,0 +32,0 @@ }

{
"name": "ding-trans",
"version": "1.0.32",
"version": "1.0.33",
"description": "a translation cli",

@@ -12,2 +12,6 @@ "main": "index.js",

},
"repository": {
"type": "git",
"url": "https://github.com/wangrongding/ding-trans.git"
},
"author": "wangrongding <wangrongding@qq.com>",

@@ -17,4 +21,5 @@ "license": "MIT",

"colors": "^1.4.0",
"say": "^0.16.0",
"yargs": "^17.0.1"
}
}

@@ -11,9 +11,6 @@ # ding-trans (ding 翻译)

##### 查单词:
```shell
#查单词
ding hello
#或者 查长短句
ding better late than never.
#或者 中译英
ding 一起加油吧!.
```

@@ -23,6 +20,34 @@

##### 查长短句:
```shell
ding better late than never
```
![汪荣顶.jpg](http://ww1.sinaimg.cn/large/75314ac9ly1gqqfqpfhnjj20ej05fmx4.jpg)
##### 中译英:
```shell
ding JavaScript是最好的语言!
```
![汪荣顶.jpg](http://ww1.sinaimg.cn/large/75314ac9ly1gqr00954u7j20cm033q2s.jpg)
##### 帅气的是!!!也支持单词与长句的发音:
```shell
ding hello -S
ding hello --say
ding better late than never -S
ding better late than never --say
```
![1623305242.jpg](http://ww1.sinaimg.cn/large/75314ac9ly1grd50m5a0cj20ea058mx4.jpg)
### 想看更多好玩的东西?
我的官方网站->See [荣顶:https://www.fedtop.com](https://www.fedtop.com).
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