
Research
/Security News
11 Malicious Go Packages Distribute Obfuscated Remote Payloads
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
text-highlighter
Advanced tools
Highlight text in DOM.
$ npm install text-highlighter --save
<div id="container">
We 💓 TypeScript!
</div>
<script src="lib/text-highlighter.js"></script>
<script>
var textHighlighter = new TextHighlighter(document.getElementById('container'));
// apply highlight
textHighlighter.highlight('typescript');
// remove highlight
textHighlighter.dehighlight();
</script>
before
<div id="container">
We 💓 TypeScript!
</div>
<script>
...
// apply highlight
textHighlighter.highlight('typescript');
</script>
after
<div id="container">
We 💓 <mark>TypeScript</mark>!
</div>
MIT
FAQs
Highlight text in DOM.
The npm package text-highlighter receives a total of 51 weekly downloads. As such, text-highlighter popularity was classified as not popular.
We found that text-highlighter 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 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).