
Research
/Security News
npm Author Qix Compromised in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
autotranslate-ng
Advanced tools
Automatically replaces text in HTML to angular-translate attributes, and creates translation table
npm install -g autotranslate-ng
This application automatically replaces text in HTML tags to angular-translate attributes, and creates translation table.
Source HTML:
<h2>Top {{ array.length }} of {{some.count}} users for Today</h2>
<a href="/next">Next</a>
Result HTML:
<h2 translate="top_of_users_for_today" translate-values="REPLACE_45 {{ array.length }}::{{some.count}}"></h2>
<a href="/next" translate="next"></a>
Translation table(JSON):
{
"top_of_users_for_today": "REPLACE_45 Top {{ array.length }} of {{ some.count }} users for Today",
"next": "Next",
}
From above example you can also notice that autotranslate-ng also introduces translate-values
attributes for angular bindings if they exists in a tag's text.
Unfortunately you need to manually convert bindings, automatic conversion is not supported.
$ autotranslate-ng [path_to_file.html]
Result will be placed into current folder as:
filename_translation.html
- original HTML file with text replaced to angular-translate attributesfilename_translation.json
- translation table in JSON formatFAQs
Automatically replaces text in HTML to angular-translate attributes, and creates translation table
The npm package autotranslate-ng receives a total of 2 weekly downloads. As such, autotranslate-ng popularity was classified as not popular.
We found that autotranslate-ng 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
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.