Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
bun-plugin-markdoc
Advanced tools
Readme
Markdoc plugin for Bun.
bun add @markdoc/markdoc bun-plugin-markdoc
import markdoc from 'bun-plugin-markdoc'
Bun.build({
// other config
plugins: [
markdoc()
],
})
In your sources you can now import markdown files:
---
title: What is Markdoc?
---
# {% $markdoc.frontmatter.title %} {% #overview %}
Markdoc is a Markdown-based syntax and toolchain for creating custom documentation sites. Stripe created Markdoc to power [our public docs](http://stripe.com/docs).
{% callout type="check" %}
Markdoc is open-source—check out its [source](http://github.com/markdoc/markdoc) to see how it works.
{% /callout %}
import overview from './overview.md'
console.log(overview) // Tree node
or import as html string:
import overview from './overview.md?html'
console.log(overview) // html string
The contents of the imported markdown file will be inlined into your bundle.
To use as a runtime plugin, create a file that registers the plugin:
// markdoc.ts
import markdoc from 'bun-plugin-markdoc'
Bun.plugin(markdoc({}));
Then preload it in your bunfig.toml
:
preload = ['./markdoc.ts']
The plugin accepts an optional Markdoc.transform config:
import markdoc from 'bun-plugin-markdoc'
Bun.plugin(markdoc({
nodes: {},
tags: {},
}))
MIT
FAQs
[Markdoc](https://markdoc.io/) plugin for Bun.
We found that bun-plugin-markdoc demonstrated a healthy version release cadence and project activity because the last version was released less than 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
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.