
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
recma-mdx-frontmatter
Advanced tools
Recma plugin to add frontmatter data as a property to MDX components
Recma plugin to add frontmatter data as a property to MDX components.
Compatible with MDX and Next.js. You can use this plugin to render templates based on MDX frontmatter.
Install the plugin:
npm install recma-mdx-frontmatter
Enable it in your next.config.js:
const withMDX = require("@next/mdx")({
options: {
// add it here!
recmaPlugins: [require("recma-mdx-frontmatter")]
}
})
const nextConfig = {
pageExtensions: ["ts", "tsx", "js", "jsx", "md", "mdx"],
}
module.exports = withMDX(nextConfig)
Create some MDX pages with frontmatter:
---
title: My page title
author: Adam Jones
---
This is an awesome MDX page
Use the .frontmatter property, for example in _app.tsx:
import "../styles/globals.css"
import type { AppProps } from "next/app"
export default function App({ Component, pageProps }: AppProps) {
return (
<div className="mdx-content">
<header>
<h1>{Component.frontmatter.title}</h1>
<p>Written by {Component.frontmatter.author}</p>
</header>
<Component {...pageProps} />
</div>
)
}
Only some of your pages use MDX and want to use different layouts for non-MDX pages? Try recma-mdx-displayname.
Pull requests are welcomed on GitHub! To get started:
npm installnpm run test to run testsnpm run buildVersions follow the semantic versioning spec.
To release:
npm version <major | minor | patch> to bump the versiongit push --follow-tags to push with tagsFAQs
Recma plugin to add frontmatter data as a property to MDX components
The npm package recma-mdx-frontmatter receives a total of 7 weekly downloads. As such, recma-mdx-frontmatter popularity was classified as not popular.
We found that recma-mdx-frontmatter 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 discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.