
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
@beoe/rehype-gnuplot
Advanced tools
Rehype plugin to generate Gnuplot diagrams (as inline SVGs) in place of code fences. This:
```gnuplot
plot [-10:10] sin(x)
```
will be converted to
<figure class="beoe gnuplot">
<svg>...</svg>
</figure>
which looks like this:
import rehypeGnuplot from "@beoe/rehype-gnuplot";
const html = await unified()
.use(remarkParse)
.use(remarkRehype)
.use(rehypeGnuplot)
.use(rehypeStringify)
.process(`markdown`);
It support caching the same way as @beoe/rehype-code-hook does.
You can create XKCD-style plots with this snippet. In order for it to work as SVG you need to changed following lines:
- set term postscript eps font 'HumorSans' fontfile 'Humor-Sans.pfa' 22
- set output 'xkcd.eps'
+ set terminal svg enhanced font "HumorSans,Patrick Hand,Chalkboard,Comic Sans MS,18"
You may use any font you like (don't forget to load it in HTML), for example:
FAQs
rehype gnuplot plugin
The npm package @beoe/rehype-gnuplot receives a total of 211 weekly downloads. As such, @beoe/rehype-gnuplot popularity was classified as not popular.
We found that @beoe/rehype-gnuplot demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.