
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@bobril/highlighter
Advanced tools
Bobril component for syntax highlighting of source code. For actual work uses highlight.js.
Updated to use version 11.9.0 of highlight.js.
import * as b from "bobril";
import * as high from "@bobril/highlighter";
import { docco } from "@bobril/highlighter/styles";
b.init(() => <high.Highlighter style={docco}>{`let actual = "code " + "shine";`}</high.Highlighter>);
By default only most common languages are registered. If all are needed use this:
import "@bobril/highlighter/allLanguages";
language?: string - if not provided then autodetect (slower)style?: HighlightStyle - provide theme to use for stylingshowLineNumbers?: boolean - default is truestartingLineNumber?: number - default is 1, NaN is automatically set to 1 as well.lineStyle?: ((line: number) => b.IBobrilStyles) | undefined - allow style div for each linelineContentStyle?: ((line: number) => b.IBobrilStyles) | undefined - allow to style div of line content without line numberlineNumberStyle?: ((largestLineNumber: number, style: HighlightStyle) => (line: number) => b.IBobrilStyles) | undefined - allows complete override of default line number stylechildren?: string - only one string child is allowed and it must contain code to formatFAQs
Syntax highlighter component for Bobril
We found that @bobril/highlighter demonstrated a healthy version release cadence and project activity because the last version was released less than 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 discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.