🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@defaude/ningyo

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@defaude/ningyo

Generates SVGs from Mermaid diagrams.

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

Ningyo

🧜‍♀️ Because we like Mermaids - but Bitbucket and Confluence don't... 🙄

Turns this

```mermaid
pie title NETFLIX
    "Time spent searching" : 95
    "Time spent watching" : 5
```

into this

The truth about Netflix

OR

this

stateDiagram-v2
    [*] --> eat
    eat --> sleep
    sleep --> code
    code --> eat

into this

The circle of Life

Usage

Put your diagram(s) in .mmd or Markdown files and pass their filenames as parameters to ningyo:

npx @defaude/ningyo foo.mmd bar.md baz.md

By default, the created SVG files will be optimized with svgo. Some diagram styles might be broken by this, however. You can skip svgo by adding the --no-optimize flag:

npx @defaude/ningyo foo.md bar.md baz.md --no-optimize

Further reading

Look at the reference to see what you can do with Mermaid.

Sadly, there are no network / cloud diagrams available at the moment, but with a little effort, it might become reality some time in the future.

FAQs

Package last updated on 19 May 2023

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