
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
eleventy-plugin-shiki-twoslash
Advanced tools
An 11ty plugin which adds shiki with optional twoslash-powered code samples
Sets up markdown code blocks to run through shiki which means it gets the VS Code quality syntax highlighting mixed with the twoslash JavaScript tooling from the TypeScript website.
Check version of Eleventy: this plugin requires Eleventy 1.0 or newer, see below for details
Install the dependency: yarn add eleventy-plugin-shiki-twoslash
Include "eleventy-plugin-shiki-twoslash"
in the plugins section of .eleventy.js
const shikiTwoslash = require("eleventy-plugin-shiki-twoslash")
module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(shikiTwoslash, { theme: "nord" })
}
Include the CSS which you can find in the next step
Go read npmjs.com/package/remark-shiki-twoslash to see the next steps, and what is available, this module leaves all the heavy work to that module.
This plugin makes use of features only available in Eleventy 1.0 or greater. It will not work with earlier versions of Eleventy. See the related issue for context. Until Eleventy 1.0 is has a general release, you may use canary releases with this plugin. See the project linked below as an example.
An example usage of this plugin is available in the Shiki Twoslash repository.
FAQs
An 11ty plugin which adds shiki with optional twoslash-powered code samples
The npm package eleventy-plugin-shiki-twoslash receives a total of 14 weekly downloads. As such, eleventy-plugin-shiki-twoslash popularity was classified as not popular.
We found that eleventy-plugin-shiki-twoslash 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.