Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
vve-baidu-translate-service
Advanced tools
该库通过封装了百度翻译的API信息,支持浏览器,客户端,nodejs调用百度翻译接口,欢迎大家使用,记得start
字段名 | 类型 | 是否必填 | 描述 | 备注 |
---|---|---|---|---|
q | string | 是 | 请求翻译query | UTF-8编码 |
to | string | 是 | 翻译目标语言 | 不可设置为auto |
appid | string | 是 | APPID | 可在管理控制台查看 |
key | string | 是 | 秘钥 | 在控制台申请查看 |
from | string | 否 | 翻译源语言 | 默认值为auto |
tts | integer | 否 | 是否显示语音合成资源 | 0-显示,1-不显示,默认值为 1 |
dict | integer | 否 | 是否显示词典资源 | 0-显示,1-不显示 ,默认值为 1 |
action | integer | 否 | 判断是否需要使用自定义术语干预API | 1-是,0-否,默认值为 0 |
Browsers (接口请求存在跨域问题)
<script src="https://unpkg.com/vve-baidu-translate-service/lib/baiduTranslateService.js"></script>
<script>
baiduTranslateService({
appid: "",
key: "",
to: "en",
q: "今天星期几?",
}).then((result) => {
console.log(result);
});
</script>
Nodejs
npm install vve-baidu-translate-service
const baiduTranslateService = require("vve-baidu-translate-service").default;
baiduTranslateService({
appid: "",
key: "",
to: "en",
q: "今天星期几?",
}).then((result) => {
console.log(result);
});
FAQs
BaiDu Universal translation API access document
The npm package vve-baidu-translate-service receives a total of 57 weekly downloads. As such, vve-baidu-translate-service popularity was classified as not popular.
We found that vve-baidu-translate-service demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.