1.1.3 • Published 6 years ago

scl-to-mermaid v1.1.3

Weekly downloads
7
License
ISC
Repository
github
Last release
6 years ago

scl-to-mermaid

Converts System Context Language to Mermaid flowchart format.

Overview

System Context Language (SCL) is a simple language for expressing concepts and relationships.

Flux Capacitor
  is in A DeLorean
  <Enables> Time Travel

Time Travel
  <Can Prevent> Getting Shot By Libyans

This library can convert SCL document to Mermaid flowchart format:

graph TB
   TimeTravel(Time Travel)
   GettingShotByLibyans(Getting Shot By Libyans)
   FluxCapacitor -- Enables --> TimeTravel
   TimeTravel -- Can Prevent --> GettingShotByLibyans

   subgraph A DeLorean
      FluxCapacitor(Flux Capacitor)
   end

Setup

npm install

Usage

import { toFlowchart } from 'scl-to-mermaid'

var flowchart = toFlowchart(sclDocument);

Tests

npm run tests

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago