
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
carta-plugin-imsize
Advanced tools
This plugin adds ability to render images in specific sizes to Carta.
npm i carta-plugin-imsize
For custom styles, this is an example of the generated HTML:
<div class="image-container">
<img
src="path/to/image"
alt="image alt"
title="image title"
width="300"
height="200"
/>
</div>
Example CSS:
/* Create a light blue background for images that fill parent's width */
.markdown-body .image-container {
padding: 5px;
background-color: lightblue;
text-align: center;
}
.markdown-body .image-container img {
object-fit: contain;
max-width: 100%;
max-height: 100%;
}
The images are shrunk to fit its container by default.
<script>
import { Carta, MarkdownEditor } from 'carta-md';
import { imsize } from 'carta-plugin-imsize';
const carta = new Carta({
extensions: [imsize()],
});
</script>
<MarkdownEditor {carta} />
Image title, width and height are optional
With all parameters:

With only with and height:

With only height:

With only width:

With no parameters:


Check the example here for more detail.
FAQs
This plugin adds ability to render images to specific sizes
We found that carta-plugin-imsize 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
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.