
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
markdown-translator
Advanced tools
其他语言:中文
Directly translate markdown file using Azure Text Translate API
Get Text Translate API Key from Azure Cognitive Services
# install cli
npm install markdown-translator -g
# set key and region from Azure Text Translate API
md-translator set --key <your key>
md-translator set --region <your region>
# do translate
md-translator translate --src README.md --dest README.zh.md --to zh
# get more information
md-translator --help
Run markdown-translator without Node environment
npm run dist:mac to build for macos and npm run dist:win for windows../markdown-translator translate --src README.md --dest README.zh.md --to zhModify dist scripts according to your platform. Find more at here
# install module
npm install markdown-translator
const markdownTranslate = require('markdown-translator')
markdownTranslate({
// Give either a filepath
src: pathToSrcFile,
// Or pass in the text directly
text: markdownContent,
from: languageToTranslateFrom,
to: languageToTranslateTo,
subscriptionKey: yourSubscriptionKey,
region: theRegionOfYourAzureInstance,
}).then((res) => {
// deal with result
})
Note that there are some opinionated defaults: from is by default 'en', to 'zh'. The region argument is optional.
FAQs
Directly translate markdown file using Azure Text Translate API
We found that markdown-translator 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.