# @diagrams-ts/graphviz-functional-ts

> create dot-language output from typescript functions

Latest version **0.5.0** (published 2021-05-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @diagrams-ts/graphviz-functional-ts
pnpm add @diagrams-ts/graphviz-functional-ts
yarn add @diagrams-ts/graphviz-functional-ts
bun add @diagrams-ts/graphviz-functional-ts
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.0 |
| Published | 2021-05-25 |
| First published | 2021-04-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 33.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 20 |
| Author | balles |
| Maintainers | diagrams-bot, mballfc24 |

## Links

- npm: https://www.npmjs.com/package/@diagrams-ts/graphviz-functional-ts
- Repository: https://github.com/balles/diagrams-ts
- Homepage: https://github.com/balles/diagrams-ts#readme
- Issues: https://github.com/balles/diagrams-ts/issues
- npm.io page: https://npm.io/package/@diagrams-ts/graphviz-functional-ts

## Recent versions

- 0.5.0 (latest) — 2021-05-25
- 0.4.0 — 2021-05-18
- 0.3.10 — 2021-05-04
- 0.3.9 — 2021-05-03
- 0.3.5 — 2021-04-29
- 0.3.4 — 2021-04-28
- 0.3.3 — 2021-04-28
- 0.3.1 — 2021-04-26
- 0.3.0 — 2021-04-21
- 0.2.0 — 2021-04-20
- 0.1.0 — 2021-04-18
- 0.0.5 — 2021-04-17
- 0.0.4 — 2021-04-16
- 0.0.3 — 2021-04-13

## README

# GraphViz-Functional

Create valid [dot](https://graphviz.org/doc/info/lang.html) 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:

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

# or when using yarn

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

## Usage

```ts
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 ;
 *  }
 */
```

---
_Source: https://npm.io/package/@diagrams-ts/graphviz-functional-ts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
