Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Shareable Eleventy configuration strap. The module can be dropped in to your .eleventy.js
configuration file for Typed supported configuration options.
Type support is assumed nowadays and when modules don't provide this basic capability it makes life difficult and reflects poorly on otherwise good projects (like Eleventy). The team behind Eleventy has floated type support but seem hesitant and from my understanding were considering using JSDoc types. We are not animals. We live in a society.
Keep in mind that this module despite using the 11ty registry name it exists as a convenience wrapper. The module requires @11ty/eleventy be installed along side it.
pnpm add 11ty @11ty/eleventy -D
The
@11ty/eleventy
module is a peer. You need to install it.
Pass it to the module.exports
within a .eleventy.js
or .eleventy.cjs
configuration file.
const eleventy = require("11ty");
module.exports = eleventy(function(config) {
config.setBrowserSyncConfig();
config.addPlugin()
return {
htmlTemplateEngine: 'liquid',
passthroughFileCopy: false,
pathPrefix: '',
templateFormats: [
'liquid',
'json',
'md',
'css',
'html',
'yaml'
],
dir: {
input: 'site',
output: 'public',
includes: 'views/include',
layouts: 'views/layouts',
data: 'data'
}
}
});
Due to the way Eleventy digests plugins, Type support is rather difficult to apply without manually including plugins and comparing typeof
which is a real mess. I am open to ideas if folks have any because without complete typed support leveraging Eleventy is like taming a wild beast.
FAQs
An Eleventy wrapper for type supported configuration.
The npm package 11ty receives a total of 0 weekly downloads. As such, 11ty popularity was classified as not popular.
We found that 11ty 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 several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.