@mermaid-js/mermaid-cli 9.3.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -2
- package/dist/index.html +926 -643
- package/package.json +3 -3
- package/src/index.js +27 -19
package/README.md
CHANGED
|
@@ -109,7 +109,7 @@ You can easily pipe input from stdin. This example shows how to use a heredoc to
|
|
|
109
109
|
send a diagram as stdin to mermaid-cli (mmdc).
|
|
110
110
|
|
|
111
111
|
```sh
|
|
112
|
-
cat << EOF | mmdc
|
|
112
|
+
cat << EOF | mmdc --input -
|
|
113
113
|
graph TD
|
|
114
114
|
A[Client] --> B[Load Balancer]
|
|
115
115
|
EOF
|
|
@@ -146,9 +146,17 @@ diagram defined on your system in `/path/to/diagrams/diagram.mmd`, you can use
|
|
|
146
146
|
the container to generate an SVG file as follows:
|
|
147
147
|
|
|
148
148
|
```sh
|
|
149
|
-
docker run --rm -u `id -u`:`id -g` -v /path/to/diagrams:/data minlag/mermaid-cli -i
|
|
149
|
+
docker run --rm -u `id -u`:`id -g` -v /path/to/diagrams:/data minlag/mermaid-cli -i diagram.mmd
|
|
150
150
|
```
|
|
151
151
|
|
|
152
|
+
In previous version, the input files were mounted in `/home/mermaidcli`. You can
|
|
153
|
+
restore this behaviour with the `--workdir` option:
|
|
154
|
+
|
|
155
|
+
```sh
|
|
156
|
+
docker run [...] --workdir=/home/mermaidcli minlag/mermaid-cli [...]
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
|
|
152
160
|
## Use Node.JS API
|
|
153
161
|
|
|
154
162
|
It's possible to call `mermaid-cli` via a Node.JS API.
|