
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
translate-baidu
Advanced tools
A free and unlimited for Baidu Translate, Multi-translation support object input
free baidu translate
npm install --save translate-baidu
const translate = require('translate-baidu')
translate('hello').then(res => {
console.log(res)
}).catch(err => {
console.error(err)
})
// => { from: "en", to: "zh", dst: "你好", src: "hello" }
Type: string
The text to be translated
Type: object
Type: string Default: auto
The text language. Must be auto or one of the codes/names (not case sensitive) contained in languages.js
Type: string Default: en
The language in which the text should be translated. Must be one of the codes/names (not case sensitive) contained in languages.js.
Type: Boolean Default: false
Return to the Full Baidu translation result object
object:text (string) – The translated text.translate('Hello world', {from: 'en', to: 'nl'}).then(res => {
console.log(res);
//=> { from: "en", to: "zh", dst: "你好,世界", src:"Hello world"}
}).catch(err => {
console.error(err);
});
MIT © Shikar
FAQs
A free and unlimited for Baidu Translate, Multi-translation support object input
We found that translate-baidu 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.