New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@beoe/astro-graphviz

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@beoe/astro-graphviz

Astro graphviz component

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

@beoe/astro-graphviz

Astro component to generate Graphviz diagrams as inline SVG.

Uage

In MDX or Astro:

import { Graphviz } from "@beoe/astro-graphviz";

<Graphviz
  code={`digraph finite_state_machine {
  	bgcolor="transparent";
    start -> end
}`}
/>

It also provides rehype plugin (re-exports @beoe/rehype-graphviz) with cache preconfigured:

import { rehypeGraphviz } from "@beoe/astro-graphviz/rehype";

// https://astro.build/config
export default defineConfig({
  markdown: {
    rehypePlugins: [rehypeGraphviz],
  },
});

Tips

See @beoe/rehype-graphviz

TODO

  • use @beoe/cache in Astro component
  • add type declarations for @beoe/astro-graphviz/rehype

Keywords

astro

FAQs

Package last updated on 05 May 2024

Did you know?

Socket

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.

Install

Related posts