
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
svelte-highlight
Advanced tools
Syntax Highlighting for Svelte using highlight.js.
This component wraps highlight.js to provide syntax highlighting in Svelte 3.
yarn add svelte-highlight
<script>
import Highlight from 'svelte-highlight';
import { typescript } from 'svelte-highlight/languages';
import 'svelte-highlight/styles/github.css';
</script>
<Highlight language={typescript}>const a: number = 4;</Highlight>
Note: Importing a css file in Svelte requires the appropriate module loader. Refer to the rollup example.
0.1.0 - 2019-11-09
FAQs
Svelte component library for highlighting code using highlight.js
The npm package svelte-highlight receives a total of 10,829 weekly downloads. As such, svelte-highlight popularity was classified as popular.
We found that svelte-highlight 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.