0.5.0 • Published 3 years ago

@diagrams-ts/graphviz-functional-ts v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

GraphViz-Functional

Create valid dot output using TypeScript. Get type support for all graph, node and edge properties. Use freely combinable render functions to create your dot input.

Installation and Requirements

Install this package by running:

npm install @diagrams-ts/graphviz-functional-ts

# or when using yarn

yarn add @diagrams-ts/graphviz-functional-ts

Usage

import { edges, createDotGraph } from "@diagrams-ts/graphviz-functional-ts";

createDotGraph([
  ...edges([
    { nodes: [{ id: "a1" }, { id: "b2" }] },
    { nodes: [{ id: "a1" }, { id: "b3" }] },
  ]),
]).then(console.log);

/*
 *  Will log:
 *
 *  digraph "g" {
 *     a1->b2 ;
 *     a3->b4 ;
 *  }
 */
0.3.9

3 years ago

0.3.10

3 years ago

0.1.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.3.5

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.1

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago