
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.
api-translator
Advanced tools
api-translator is a free and unlimited translation API that uses Google Translate
⚠️ Disclaimer: This is an unofficial translation library created for educational purposes. It demonstrates web scraping techniques and automated translation workflows using Google Translate's interface. This project is fully working and regularly updated to ensure compatibility with current web technologies.
🈂️ ⠀free text translator for Node.js.
To install api-translator, you can use:
# npm
npm i api-translator
# or with yarn
yarn add api-translator
#or with pnpm
pnpm add api-translator
const { translate } = require("api-translator");
(async () => {
const translatedText = await translate("Hello World", {
from: "en",
to: "ar",
});
console.log(translatedText); // اهلا بالعالم
})();
If the language informed in the from is dynamic, just do not send it and the translator will automatically recognize it:
const { translate } = require("api-translator");
(async () => {
const translatedText = await translate("This is cool!", { to: "ar" });
console.log(translatedText); // هذا رائع!
})();
You can also translate multiple texts at the same time:
const { translate } = require("api-translator");
(async () => {
const translatedText = await translate(["Hello World", "This is cool!"], {
to: "ar",
});
console.log(translatedText); // [ 'اهلا بالعالم', 'هذا رائع!' ]
})();
You can also translate a json object:
const { translate } = require("api-translator");
(async () => {
const obj = {
Home: "Home",
About: "About",
Contact: "Contact",
Login: "Login",
};
const result = await translate(obj, { to: "fr" });
console.log(result); // { Home: 'Accueil', About: 'À propos', Contact: 'Contact', Login: 'Connexion' }
})();
el3zahaby@gmail.com@egyjsFAQs
api-translator is a free and unlimited translation API that uses Google Translate
The npm package api-translator receives a total of 56 weekly downloads. As such, api-translator popularity was classified as not popular.
We found that api-translator 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.

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.