ahmedash95 / mersli

Make slides from your mermaids

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mersli

Mersli is a simple cli tool to generate slides from mermaid diagrams to a web html page.

Features

  • Generate slides from mermaid diagrams
  • Json file is only supported for now more formats will be added in the future.
  • Hot reload on file changes
  • Auto open browser on start

Installation

npm install -g mersli

Demo

New.Recording.Apr.23.2023.0719.PM.mp4

Usage

a quick example from the example.json in this repo

mersli -i ./example.json
mersli --help

  __  __                       _   _
 |  \/  |   ___   _ __   ___  | | (_)
 | |\/| |  / _ \ | '__| / __| | | | |
 | |  | | |  __/ | |    \__ \ | | | |
 |_|  |_|  \___| |_|    |___/ |_| |_|

Usage: index [options]

Make slides from your mermaid diagrams

Options:
  -V, --version       output the version number
  -i, --input <path>  Input file
  -p, --port <port>   Port to start the server on (default: 3000)
  -a, --auto-open     Auto open the browser (default: true)
  -h, --help          display help for command

About

Make slides from your mermaids


Languages

Language:HTML 64.4%Language:JavaScript 35.6%