
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
@code-blocks/rehype-transform
Advanced tools
A rehype transform to render code blocks
Install the transform:
npm install @code-blocks/rehype-transform --save
Install the renderers you need, for example:
npm install @code-blocks/charts --save
An use it:
const unified = require('unified')
const stream = require('unified-stream')
const markdown = require('remark-parse')
const remark2rehype = require('remark-rehype')
const html = require('rehype-stringify')
// the rehype transform
const codeblocks = require('@code-blocks/rehype-transform')
// some renderers
const charts = require('@code-blocks/charts')
const graphviz = require('@code-blocks/graphviz')
const processor = unified()
.use(markdown)
.use(remark2rehype)
// add the transform and the renderers in an array as options
.use(codeblocks, [charts, graphviz])
.use(html)
process.stdin.pipe(stream(processor)).pipe(process.stdout)
Available renderers:
FAQs
A rehype transform to render code blocks
We found that @code-blocks/rehype-transform 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 researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.