Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
baidu-translate-api-temp
Advanced tools
Readme
A free and unlimited API for Baidu Translate
npm install --save baidu-translate-api
or
yarn add baidu-translate-api
const translate = require("baidu-translate-api");
translate("让我们来翻译吧!").then(res => {
console.log(res.trans_result.dst);
// Let's translate it!
});
Type: String
The text to be translated
Type: Object
from
Type: String
Default: auto
The language in which the query text or auto
. Contain in Languages
to
Type: String
Default: en
The language in which the text should be translated. Contain in Languages
requestOpts
Type: RequestOptions
Default: {}
reference request options
object
:from
- The lanuage in which the query text.
to
trans_result
(object)
dst
- The translationsrc
- The source (equal to query)name | desc |
---|---|
useLocalStore | store the token config in memory. default: false. |
abbr | name |
---|---|
auto | Automatic detection |
zh | Chinese |
en | English |
yue | Cantonese |
wyw | Classical Chinese |
jp | Japanese |
kor | Korean |
fra | French |
spa | Spanish |
th | Thai |
ara | Arabic |
ru | Russian |
pt | Portuguese |
de | German |
it | Italian |
el | Greek language |
nl | Dutch |
pl | Polish |
bul | Bulgarian |
est | Estonian |
dan | Danish |
fin | Finnish |
cs | Czech |
rom | Romanian |
slo | Slovenia |
swe | Swedish |
hu | Hungarian |
cht | Traditional Chinese |
vie | Vietnamese |
If this repo helped you, give me a star and it's the greatest encouragement to me.
FAQs
A free and unlimited API for Baidu Translate
The npm package baidu-translate-api-temp receives a total of 2 weekly downloads. As such, baidu-translate-api-temp popularity was classified as not popular.
We found that baidu-translate-api-temp demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.