0.1.1 • Published 4 years ago

mermaid-previewer v0.1.1

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

mermaid-previewer

version license

Basic CLI tool for previewing live edits to Mermaid.js Diagrams

Mermaid preview cli tool screen recording

Installation

To install the CLI tool using NPM:

npm install -g mermaid-previewer

Usage

mermaid <diagram file>

The <diagram file> is a required option which should simply be the name of the .mmd Mermaid.js Diagram file.

The .mmd file extension is required.

Running the CLI tool will open a local preview server, displaying the diagram preview in the browser. Any changes to the target diagram file will automatically refresh the preview.

The preview also includes an 'Export' button. Clicking this will export the diagram to the same location as the original target diagram file as a JPEG.

CLI Options

--port: Sets the preview server port (default: 9510)

--help: Displays the help output

--version: Displays the current version

Contributing

Pull Requests are welcome! Check out the CONTRIBUTING.md file for project details.

License

MIT