
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.
@metalsmith/excerpts
Advanced tools
A Metalsmith plugin to extract an excerpt from HTML files.
NPM:
npm install @metalsmith/excerpts
Yarn:
yarn add @metalsmith/excerpts
The excerpt is scraped from the first paragraph (<p> tag) of the rendered HTML contents of a file and added to its metadata excerpt key.
const excerpts = require('@metalsmith/excerpts')
metalsmith.use(excerpts()) // default -> file.excerpt
metalsmith.use(excerpts({ multipleFormats: true })) // -> file.excerpt.html & file.excerpt.text
You can define a custom excerpt in the front-matter of specific files:
---
excerpt: This will be the excerpt
---
This would be the excerpt if none was specified in the front-matter
Sometimes you may need access to the text content of the excerpt without HTML tags.
Pass the multipleFormats: true option to store an excerpt object with both HTML and text excerpts { html: '...', text: '...' }:
metalsmith.use(excerpts({ multipleFormats: true }))
Add the @metalsmith/excerpts key to your metalsmith.json plugins key:
{
"plugins": [{ "@metalsmith/excerpts": { "multipleFormats": false } }]
}
FAQs
A Metalsmith plugin to extract an excerpt from HTML files.
The npm package @metalsmith/excerpts receives a total of 38 weekly downloads. As such, @metalsmith/excerpts popularity was classified as not popular.
We found that @metalsmith/excerpts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.