
Research
Security News
Malicious npm Packages Target BSC and Ethereum to Drain Crypto Wallets
Socket uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.
sermoa-ruby_translate
Advanced tools
RubyTranslate provides a simple wrapper around the Google Translate API for detecting and translating languages.
Usage:
gem install sermoa-ruby_translate require 'ruby_translate'
Detect:
RubyTranslate.detect("Mein Luftkissenfahrzeug ist voller Aale") => "de"
RubyTranslate.detect("Safisha viatu yangu mara moja!") => "sw"
Translate:
RubyTranslate.translate("Mein Luftkissenfahrzeug ist voller Aale", "en") => "My hovercraft is full of eels"
RubyTranslate.translate("Il y a un singe qui vole dans l'arbre.", "en") => "There is a flying monkey in the tree."
RubyTranslate.translate("They are singing in St Peter's Square", "it") => "Essi sono il canto, in Piazza San Pietro"
RubyTranslate.translate("Eu queria um outro pedacinho de Apfelstrudel, por favor", "sv", "pt") => "Jag ville ha en bit av Apfelstrudel, tack"
Note that the 'from' parameter is optional - if you do not provide it, RubyTranslate first uses detect to guess which language it is.
Acknowledgements:
Thanks to the following excellent sources for inspiration:
FAQs
Unknown package
We found that sermoa-ruby_translate 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.
Research
Security News
Socket uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.
Security News
TC39 advances 9 JavaScript proposals, including Array.fromAsync, Error.isError, and Explicit Resource Management, which are now headed into the ECMAScript spec.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.