Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
eleventy-plugin-debug
Advanced tools
npm install pdehaan/eleventy-plugin-debug
// .eleventy.js
const debug = require("eleventy-plugin-debug");
module.exports = (eleventyConfig) => {
eleventyConfig.addPlugin(debug);
return {};
};
This plugin will add the following new global filters which will help with debugging:
inspect
— Wrapper for Node's native util.inspect()
method.json
— Wrapper for JavaScript's JSON.stringify()
method. This filter takes one optional argument which is a string or number value to use for indentation, if you want pretty printed JSON objects.keys
— Wrapper for JavaScript's Object.keys()
method. This filter will also sort the returned array of key names for the specified object.{{ collections.all | inspect }}
{{ page | json }}
{{ page | json(2) }}
{{ page | keys }}
{{ collections.all | inspect }}
{{ page | json }}
{{ page | json: 2 }}
{{ page | keys }}
${ this.inspect(data.collections.all) }
${ this.json(data.page) }
${ this.json(data.page, 2) }
${ this.keys(data.page) }
${ this.json(this.keys(data.page), 2) }
FAQs
A collection of debugging filters for Eleventy projects.
We found that eleventy-plugin-debug 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.