Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
x-postpress-code
Advanced tools
A web component used for code highlighting. Try it out at JS BIN.
Use the type attribute and include the source in the default slot with pre
tags to render static content:
<x-postpress-code type="bash"><pre>
#/usr/bin/env bash
for file in *; do
echo $file
done
</pre></x-postpress-code>
Lazy load the content to be highlighted by using both the type and src attributes:
<x-postpress-code
src="https://example.com/example.js"
type="js"
></x-postpress-code>
<script
src="https://unpkg.com/x-postpress-code"
type="module"
></script>
npm i x-postpress-code
import 'x-postpress-code'
bash
c
cpp
css
javascript
json
markdown
php
plaintext
python
shell
typescript
xml
FAQs
A web component used for code highlighting.
The npm package x-postpress-code receives a total of 28 weekly downloads. As such, x-postpress-code popularity was classified as not popular.
We found that x-postpress-code 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.