Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
asksuite-translate-json-object
Advanced tools
Translate a JSON object to any language via google or yandex translate API
A Node.js module to translate a JSON object from a detectable language to any other language via
npm i translate-json-object
// Require the module and instantiate instance
var TJO = require('translate-json-object')();
// Choose the service to use google/yandex,
// if you provide both yandex will be used as the default
TJO.init({
googleApiKey: 'api_key',
yandexApiKey: 'api_key'
});
// An example scenario (json) object
var example = {
"name": "Please enter your name",
"list": ["translate", "object", "made", "easy"],
"nested": {
"hello": "hello",
"world": "world"
}
};
// Translate method takes (source object, and language code)
TJO.translate(example, 'es')
.then(function(data) {
console.log(data);
}).catch(function(err) {
console.log('error ', err)
});
RESULT ↴
{ name: 'por favor, escriba su nombre',
list: [ 'traducir', 'objeto', 'hecho', 'fácil' ],
nested: { hello: 'Hola', world: 'mundo' }
}
See API Doc
✔︎ Adding yandex service v2.1.0
✔︎ Unit test v2.1.4
✔︎ JS Linting v2.1.3
✔︎ semantic-release-cli v2.2.0
☐ Adding bing translate service
☐ Adding cli utility
FAQs
Translate a JSON object to any language via google or yandex translate API
The npm package asksuite-translate-json-object receives a total of 0 weekly downloads. As such, asksuite-translate-json-object popularity was classified as not popular.
We found that asksuite-translate-json-object 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 removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.