
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
eleventy-plugin-components
Advanced tools
One of many approaches to using js components in eleventy
npm install eleventy-plugin-components
in .eleventy.js
const components = require('eleventy-plugin-components')
module.exports = eleventyConfig => {
eleventyConfig.addPlugin(components)
}
Create components as named iife in _site/js. In the example setup, we have a counter component like this
As the name implies it is a counter. It also takes a name property and shows a string with Hello ${name}.
To use the component in a markdown page use a code block with comp as language and the following content:
name: counter
className: counter
props:
name: world
fallback: If you enable js, you will see a counter here
name is the name of the componentclassName is a class we add to the <div> that contains the component (for styling)props is what we pass the component, in this case a namefallback is what you see if you disable javascriptonly name is required, the rest is optional.
<div> with a unique idclass if you defined it with classNamefallback text) and calls your component giving it the unique id and the propsSee the example markdown and the generated HTML file
iife with the same name as name but in CamelCase (a component folder my-beautiful-component needs to have a global name MyBeautifulComponent)FAQs
Add js components through code blocks in markdown
We found that eleventy-plugin-components 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 researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.