Huge News!Announcing our $40M Series B led by Abstract Ventures.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.3 to 1.0.31

17

bin/translate.js

@@ -10,3 +10,5 @@ #! /usr/bin/env node

let colors = require("colors");
require("colors");
// let colors = require("colors");
// console.log("测试文本".bold.red);
let argv = require("yargs").argv,

@@ -36,2 +38,3 @@ queryStr = encodeURI(argv._.join(" ")),

webTitle = "网络释义:",
machineTrans = "",
webTrans = "",

@@ -41,3 +44,4 @@ template = "";

let basic = data.basic,
web = data.web;
web = data.web,
translation = data.translation;

@@ -62,2 +66,3 @@ if (basic ? basic : "") {

translation ? (machineTrans = translation) : false;
template =

@@ -71,3 +76,6 @@ pronTitle.red.bold +

webTitle.blue.bold +
webTrans;
webTrans +
"\n" +
"机器翻译:".green.bold +
machineTrans;

@@ -89,2 +97,3 @@ console.log(template);

};
// let options = ` http://aidemo.youdao.com/trans?q=${query}&&from=Auto&&to=Auto`;

@@ -100,3 +109,3 @@ // 处理响应的回调函数

// 数据接收完成
console.log("\n");
// console.log("\n");
console.log("---------------");

@@ -103,0 +112,0 @@ });

{
"name": "ding-trans",
"version": "1.0.3",
"version": "1.0.31",
"description": "a translation cli",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -11,10 +11,14 @@ # ding-trans (ding 翻译)

```
```shell
ding hello
#或者
ding better late than never.
```
![1621489715(1).jpg](http://ww1.sinaimg.cn/large/75314ac9ly1gqouh4l13sj20g6073749.jpg)
![汪荣顶.jpg](http://ww1.sinaimg.cn/large/75314ac9ly1gqouh4l13sj20g6073749.jpg)
### 支持我
![汪荣顶.jpg](http://ww1.sinaimg.cn/large/75314ac9ly1gqqfqpfhnjj20ej05fmx4.jpg)
See [荣顶](https://www.fedtop.com).
### 想看更多好玩的东西?
我的官方网站->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