ding-trans
Advanced tools
Comparing version 1.0.32 to 1.0.33
@@ -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). |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
4699
103
52
0
3
+ Addedsay@^0.16.0
+ Addedone-time@0.0.4(transitive)
+ Addedsay@0.16.0(transitive)